473,378 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 ?

Dec 19 '06 #1
11 2230

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 ?
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'.

Dec 19 '06 #2
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 am sure you'll get an answer in one of zillion groups you posted this
stupid question to...

Regards,
Erwin
Dec 19 '06 #3
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...

Dec 19 '06 #4
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 ?
It has very much to do with computer programming. There is program flow,
conditions, loops, variables.

Roman
Dec 22 '06 #5
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" <me**@dipmicro.comwrote in message
news:22*****************@read2.cgocable.net...
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 ?

It has very much to do with computer programming. There is program flow,
conditions, loops, variables.

Roman
Dec 22 '06 #6
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
Dec 24 '06 #7

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 ?

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.

Dec 24 '06 #8
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 ?
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
Dec 24 '06 #9
On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:
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 ?
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
Dec 24 '06 #10

Rad [Visual C# MVP] wrote:
On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:
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?

Dec 25 '06 #11

de**************@gmail.com wrote:
Rad [Visual C# MVP] wrote:
On Sun, 24 Dec 2006 16:36:31 +0100, Stef Mientki wrote:
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.

Dec 25 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kenneth McDonald | last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate feedback, suggestions, and criticism as I work towards finalizing the API and feature sets. rex is a module intended to make...
4
by: Buddy | last post by:
Can someone please show me how to create a regular expression to do the following My text is set to MyColumn{1, 100} Test I want a regular expression that sets the text to the following...
4
by: Neri | last post by:
Some document processing program I write has to deal with documents that have headers and footers that are unnecessary for the main processing part. Therefore, I'm using a regular expression to go...
11
by: Dimitris Georgakopuolos | last post by:
Hello, I have a text file that I load up to a string. The text includes certain expression like {firstName} or {userName} that I want to match and then replace with a new expression. However,...
3
by: James D. Marshall | last post by:
The issue at hand, I believe is my comprehension of using regular expression, specially to assist in replacing the expression with other text. using regular expression (\s*) my understanding is...
7
by: Billa | last post by:
Hi, I am replaceing a big string using different regular expressions (see some example at the end of the message). The problem is whenever I apply a "replace" it makes a new copy of string and I...
9
by: Pete Davis | last post by:
I'm using regular expressions to extract some data and some links from some web pages. I download the page and then I want to get a list of certain links. For building regular expressions, I use...
25
by: Mike | last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in matches. I would like to get what the actual regular expression is. In other words, when I apply ^(.+)(?=\s*).*\1 to " HEART...
1
by: Allan Ebdrup | last post by:
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find...
1
by: NvrBst | last post by:
I want to use the .replace() method with the regular expression /^ %VAR % =,($|&)/. The following DOESN'T replace the "^default.aspx=,($|&)" regular expression with "":...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.