Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 19th, 2006, 04:35 AM
Asper Faner
Guest
 
Posts: n/a
Default regular expression

I seem to always have hard time understaing how this regular expression
works, especially how on earth do people bring it up as part of
computer programming language. Natural language processing seems not
enough to explain by the way. Why no eliminate it ?

  #2  
Old December 19th, 2006, 07:15 AM
Paddy
Guest
 
Posts: n/a
Default Re: regular expression


Asper Faner wrote:
Quote:
I seem to always have hard time understaing how this regular expression
works, especially how on earth do people bring it up as part of
computer programming language. Natural language processing seems not
enough to explain by the way. Why no eliminate it ?
If you try to eliminate what you don't understand you won't learn
anything!

I suggest that you put the learning of regexps aside for a while and
come back to it 'later'.

  #3  
Old December 19th, 2006, 10:15 AM
Erwin Moller
Guest
 
Posts: n/a
Default Re: regular expression

Asper Faner wrote:
Quote:
I seem to always have hard time understaing how this regular expression
works, especially how on earth do people bring it up as part of
computer programming language. Natural language processing seems not
enough to explain by the way. Why no eliminate it ?
I am sure you'll get an answer in one of zillion groups you posted this
stupid question to...

Regards,
Erwin
  #4  
Old December 19th, 2006, 12:35 PM
Kleine Aap
Guest
 
Posts: n/a
Default Re: regular expression

Asper Faner wrote:
Quote:
I seem to always have hard time understaing how this regular expression
works, especially how on earth do people bring it up as part of
computer programming language. Natural language processing seems not
enough to explain by the way. Why no eliminate it ?
I.M.H.O. anyone that is not capable to grasp the concept of regular
expressions should not attempt to write computer programs at all! My
suggestion to you would be to find a job that involves working with your
hands...

  #5  
Old December 22nd, 2006, 01:05 AM
Roman
Guest
 
Posts: n/a
Default Re: regular expression

Asper Faner wrote:
Quote:
I seem to always have hard time understaing how this regular expression
works, especially how on earth do people bring it up as part of
computer programming language. Natural language processing seems not
enough to explain by the way. Why no eliminate it ?
>
It has very much to do with computer programming. There is program flow,
conditions, loops, variables.

Roman
  #6  
Old December 22nd, 2006, 01:25 AM
aejw.com
Guest
 
Posts: n/a
Default Re: regular expression

Also regular expressions are (pretty much) universal accross a ton of
languages... even search engines now provide some support for regular
expressions... I know its a bit of a headache, but keep trying to learn it
mate. Once you have it wrapped you will never look back.

Adam - http://www.aejw.com/?page=contact

"Roman" <me47@dipmicro.comwrote in message
news:22Gih.18093$Ca.6266@read2.cgocable.net...
Quote:
Asper Faner wrote:
Quote:
>I seem to always have hard time understaing how this regular expression
>works, especially how on earth do people bring it up as part of
>computer programming language. Natural language processing seems not
>enough to explain by the way. Why no eliminate it ?
>>
>
It has very much to do with computer programming. There is program flow,
conditions, loops, variables.
>
Roman
  #7  
Old December 24th, 2006, 02:15 AM
Joe Kesselman
Guest
 
Posts: n/a
Default Re: regular expression

Reminder: anything crossposted across this many newsgroups, especially
asking an inherently bogus question, is probably just trolling.

If it's equally on topic everywhere, that means it's on topic nowhere.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
  #8  
Old December 24th, 2006, 01:45 PM
Dustan
Guest
 
Posts: n/a
Default Re: regular expression


Kleine Aap wrote:
Quote:
Asper Faner wrote:
>
Quote:
I seem to always have hard time understaing how this regular expression
works, especially how on earth do people bring it up as part of
computer programming language. Natural language processing seems not
enough to explain by the way. Why no eliminate it ?
>
I.M.H.O. anyone that is not capable to grasp the concept of regular
expressions should not attempt to write computer programs at all! My
suggestion to you would be to find a job that involves working with your
hands...
Your humble opinion doesn't get much ruder...

Perhaps you meant "anyone that is not capable to grasp the concept of
regular expressions after some experience with programming should not
attempt to write computer programs at all!" Then at least newbies would
have a leg to stand on.

Otherwise, you're practically cutting off all entrances into the world
of programming! The concept of regular expressions isn't exactly the
simplest one out there. Just because you understood it immediately
(which I'm guessing you did, considering your harsh response), doesn't
mean others find the concept that simple.

  #9  
Old December 24th, 2006, 03:45 PM
Stef Mientki
Guest
 
Posts: n/a
Default Re: regular expression

Dustan wrote:
Quote:
Kleine Aap wrote:
Quote:
>Asper Faner wrote:
>>
Quote:
>>I seem to always have hard time understaing how this regular expression
>>works, especially how on earth do people bring it up as part of
>>computer programming language. Natural language processing seems not
>>enough to explain by the way. Why no eliminate it ?
>I.M.H.O. anyone that is not capable to grasp the concept of regular
>expressions should not attempt to write computer programs at all! My
>suggestion to you would be to find a job that involves working with your
>hands...
>
Your humble opinion doesn't get much ruder...
>
Perhaps you meant "anyone that is not capable to grasp the concept of
regular expressions after some experience with programming should not
attempt to write computer programs at all!" Then at least newbies would
have a leg to stand on.
>
Otherwise, you're practically cutting off all entrances into the world
of programming! The concept of regular expressions isn't exactly the
simplest one out there. Just because you understood it immediately
(which I'm guessing you did, considering your harsh response), doesn't
mean others find the concept that simple.
>
I agree, and in addition:

(large) regular expressions are easy to write,
but can be almost impossible to read back !

I once had a program to generate and evaluate regular expressions,
but can't find it anymore :-(

If someone has links to regex generators/evaluators,
I'ld be much obliged.

cheers.
Stef Mientki
  #10  
Old December 24th, 2006, 04:05 PM
Rad [Visual C# MVP]
Guest
 
Posts: n/a
Default Re: regular expression

On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:
Quote:
Dustan wrote:
Quote:
>Kleine Aap wrote:
Quote:
>>Asper Faner wrote:
>>>
>>>I seem to always have hard time understaing how this regular expression
>>>works, especially how on earth do people bring it up as part of
>>>computer programming language. Natural language processing seems not
>>>enough to explain by the way. Why no eliminate it ?
>>I.M.H.O. anyone that is not capable to grasp the concept of regular
>>expressions should not attempt to write computer programs at all! My
>>suggestion to you would be to find a job that involves working with your
>>hands...
>>
>Your humble opinion doesn't get much ruder...
>>
>Perhaps you meant "anyone that is not capable to grasp the concept of
>regular expressions after some experience with programming should not
>attempt to write computer programs at all!" Then at least newbies would
>have a leg to stand on.
>>
>Otherwise, you're practically cutting off all entrances into the world
>of programming! The concept of regular expressions isn't exactly the
>simplest one out there. Just because you understood it immediately
>(which I'm guessing you did, considering your harsh response), doesn't
>mean others find the concept that simple.
>>
I agree, and in addition:
>
(large) regular expressions are easy to write,
but can be almost impossible to read back !
>
I once had a program to generate and evaluate regular expressions,
but can't find it anymore :-(
>
If someone has links to regex generators/evaluators,
I'ld be much obliged.
>
cheers.
Stef Mientki
A good tool to write, test and analyse regexes is the Regulator, available
here http://sourceforge.net/projects/regulator/

A good reference site is http://www.regular-expressions.info/, with
tutorials, examples and tools
--
Bits.Bytes
http://bytes.thinkersroom.com
  #11  
Old December 25th, 2006, 02:25 PM
deviantbunnylord@gmail.com
Guest
 
Posts: n/a
Default Re: regular expression


Rad [Visual C# MVP] wrote:
Quote:
On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:
>
Quote:
Dustan wrote:
Quote:
Kleine Aap wrote:
>Asper Faner wrote:
>>
>>I seem to always have hard time understaing how this regular expression
>>works, especially how on earth do people bring it up as part of
>>computer programming language. Natural language processing seems not
>>enough to explain by the way. Why no eliminate it ?
Hi folks, fairly new to the list(Python is my first programming
language, so I'm fairly new to the world of programming too)but this is
a question I've been wondering about since I started learning about the
re module. Are regular expressions what makes mark up languages
interpretable by webbrowsers?

  #12  
Old December 25th, 2006, 03:55 PM
Dustan
Guest
 
Posts: n/a
Default Re: regular expression


deviantbunnylord@gmail.com wrote:
Quote:
Rad [Visual C# MVP] wrote:
Quote:
On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:
Quote:
Dustan wrote:
>Kleine Aap wrote:
>>Asper Faner wrote:
>>>
>>>I seem to always have hard time understaing how this regular expression
>>>works, especially how on earth do people bring it up as part of
>>>computer programming language. Natural language processing seems not
>>>enough to explain by the way. Why no eliminate it ?
>
Hi folks, fairly new to the list(Python is my first programming
language, so I'm fairly new to the world of programming too)but this is
a question I've been wondering about since I started learning about the
re module. Are regular expressions what makes mark up languages
interpretable by webbrowsers?
I don't actually know the answer, but my educated guess:

Regular expressions are just the simplest way to parse any text, but
there are other ways. Webbrowsers most likely depend on regular
expressions just because it's a relatively quick and easy way to
interpret the language.

  #13  
Old December 25th, 2006, 11:35 PM
Steven D'Aprano
Guest
 
Posts: n/a
Default Re: regular expression

On Mon, 25 Dec 2006 06:17:00 -0800, deviantbunnylord@gmail.com wrote:
Quote:
Hi folks, fairly new to the list(Python is my first programming
language, so I'm fairly new to the world of programming too)but this is
a question I've been wondering about since I started learning about the
re module. Are regular expressions what makes mark up languages
interpretable by webbrowsers?
Web browsers have to render HTML, which implies they must be able
to parse and interpret at least one markup language. _How_ they parse the
markup is up to the browser developers.

Since regular expressions are very good at certain types of text parsing,
and are widely available, it is probable that regular expressions are used
in some (many? all?) markup parsers, simply because it is widely available
and is a good tool for some (but not all) parsing tasks. For example,
Python's xmllib module uses reg exps to parse xml.

Essentially, a regular expression engine is a super-charged "find"
command on steroids. But that doesn't mean that reg exps are the only tool
for the job. A markup parser doesn't necessarily need to use regexes.


--
Steven.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles