473,322 Members | 1,718 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,322 software developers and data experts.

Regular Expression Resources

Anybody have any URL's to tutorials and/or references for Regular
Expressions?

The four I have so far are:

http://docs.sun.com/source/816-6408-10/regexp.htm
http://en.wikipedia.org/wiki/Regular_expression
http://www.regular-expressions.info/javascript.html
http://www.webreference.com/js/column5/

The first two came from the FAQ, second two came from a Google Search
for "Javascript Regular Expression" so I am not sure how good they are.

And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
FAQ Notes: http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6
Oct 18 '07 #1
12 2416
FAQEditor wrote:
Anybody have any URL's to tutorials and/or references for Regular
Expressions?

The four I have so far are:

http://docs.sun.com/source/816-6408-10/regexp.htm
http://en.wikipedia.org/wiki/Regular_expression
http://www.regular-expressions.info/javascript.html
http://www.webreference.com/js/column5/

The first two came from the FAQ, second two came from a Google Search
for "Javascript Regular Expression" so I am not sure how good they are.

And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?
Hi,

You might want to add the excelent book "mastering regular expressions".

To my suprise I found it completely online at book.google.
(Why the hell did I buy it?)

If you search in google 'mastering regular expressions' it end up as the
first, but the url is hopeless long.

I learned all my regex skill from that book.
It has a lot of tests in it to keep you sharp.
I really recommend it.
Regards,
Erwin Moller
Oct 18 '07 #2
Erwin Moller wrote:
FAQEditor wrote:
>Anybody have any URL's to tutorials and/or references for Regular
Expressions?

The four I have so far are:

http://docs.sun.com/source/816-6408-10/regexp.htm
http://en.wikipedia.org/wiki/Regular_expression
http://www.regular-expressions.info/javascript.html
http://www.webreference.com/js/column5/

The first two came from the FAQ, second two came from a Google Search
for "Javascript Regular Expression" so I am not sure how good they are.

And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?

Hi,

You might want to add the excelent book "mastering regular expressions".

To my suprise I found it completely online at book.google.
(Why the hell did I buy it?)

If you search in google 'mastering regular expressions' it end up as the
first, but the url is hopeless long.

I learned all my regex skill from that book.
It has a lot of tests in it to keep you sharp.
I really recommend it.
Regards,
Erwin Moller
Correction: I was wrong. The books are NOT completely online.
Google implemented some 'viewing limit'.
You can tell I found books.google just now. ;-)

Sorry for the misinformation.

Regards,
Erwin Moller
Oct 18 '07 #3
Erwin Moller wrote on 18 okt 2007 in comp.lang.javascript:
You might want to add the excelent book "mastering regular expressions".

To my suprise I found it completely online at book.google.
No only partly online,
the 2002 more complete than the 2006 edition, meseems.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 18 '07 #4
Erwin Moller said the following on 10/18/2007 5:30 AM:
Erwin Moller wrote:
>FAQEditor wrote:
>>Anybody have any URL's to tutorials and/or references for Regular
Expressions?

The four I have so far are:

http://docs.sun.com/source/816-6408-10/regexp.htm
http://en.wikipedia.org/wiki/Regular_expression
http://www.regular-expressions.info/javascript.html
http://www.webreference.com/js/column5/

The first two came from the FAQ, second two came from a Google Search
for "Javascript Regular Expression" so I am not sure how good they are.

And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?

Hi,

You might want to add the excelent book "mastering regular expressions".

To my suprise I found it completely online at book.google.
(Why the hell did I buy it?)

If you search in google 'mastering regular expressions' it end up as
the first, but the url is hopeless long.

I learned all my regex skill from that book.
It has a lot of tests in it to keep you sharp.
I really recommend it.
Regards,
Erwin Moller

Correction: I was wrong. The books are NOT completely online.
Google implemented some 'viewing limit'.
You can tell I found books.google just now. ;-)

Sorry for the misinformation.
No problem. Right now I am trying to come up with a Regular Expression
entry for the FAQ and hunting quotes, snippets, URLs, etc.. for the
entry. I will give the book a look later when I have time.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
FAQ Notes: http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6
Oct 18 '07 #5
Evertjan. said the following on 10/18/2007 5:42 AM:
Erwin Moller wrote on 18 okt 2007 in comp.lang.javascript:
>You might want to add the excelent book "mastering regular expressions".

To my suprise I found it completely online at book.google.

No only partly online,
the 2002 more complete than the 2006 edition, meseems.
Do you know of any other online resources that are pretty good for JS
Regular Expressions? Not so much a "This is an example" type sites but
more of a "This is how they work" type sites.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
FAQ Notes: http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6
Oct 18 '07 #6
FAQEditor wrote on 18 okt 2007 in comp.lang.javascript:
Evertjan. said the following on 10/18/2007 5:42 AM:
>Erwin Moller wrote on 18 okt 2007 in comp.lang.javascript:
>>You might want to add the excelent book "mastering regular
expressions".

To my suprise I found it completely online at book.google.

No only partly online,
the 2002 more complete than the 2006 edition, meseems.

Do you know of any other online resources that are pretty good for JS
Regular Expressions? Not so much a "This is an example" type sites but
more of a "This is how they work" type sites.
I learned regex around 2003 mainly on this NG
and on microsoft.public.scripting.jscript
with only the syntax page of script56.chm as the regular specs guide.

My knowledge of those resources by consequence is limited.

My use of RegEx in AWK and alike in the '80s never amounted to much.
<http://en.wikipedia.org/wiki/AWK_(programming_language)>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 18 '07 #7
pr
FAQEditor wrote:
Anybody have any URL's to tutorials and/or references for Regular
Expressions?

The four I have so far are:

http://docs.sun.com/source/816-6408-10/regexp.htm
That's an old Netscape JavaScript 1.2 reference: pre-dates numerous
modern conveniences like non-greedy quantifiers, non-capturing
parentheses or lookaheads/behinds (none of which a beginner will
regularly use).
http://en.wikipedia.org/wiki/Regular_expression
Nah. That's everything in the world about regular expressions, including
much that will confuse a JavaScript user, like "POSIX extended regular
expressions".
http://www.regular-expressions.info/javascript.html
Incomplete. Aimed at programmers in other languages.
http://www.regular-expressions.info/...ptexample.html is a good
idea, but doesn't work very well. It wouldn't take much effort to come
up with a better expression tester for the FAQ if you're interested.
http://www.webreference.com/js/column5/
A bit antique, but a nice tutorial.
>
The first two came from the FAQ, second two came from a Google Search
for "Javascript Regular Expression" so I am not sure how good they are.
What about

http://developer.mozilla.org/en/docs...ar_Expressions

? Also on the "horse's mouth" principle, there are the perl man pages
(eg http://perldoc.perl.org/perlre.html), but there are enough
differences from JavaScript to confuse a reader who wasn't forewarned.
And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?
I like this, from the Netscape JavaScript 1.3 Guide:

| Regular expressions are patterns used to match character combinations
| in strings.

Too short?
Oct 18 '07 #8
In comp.lang.javascript message <v7*********************@giganews.com>,
Thu, 18 Oct 2007 04:57:28, FAQEditor <cl****@comcast.netposted:
>Anybody have any URL's to tutorials and/or references for Regular
Expressions?
Yes, at <URL:http://www.merlyn.demon.co.uk/js-valid.htm#RL>.
>http://docs.sun.com/source/816-6408-10/regexp.htm OK
http://en.wikipedia.org/wiki/Regular_expression OK, put first?
http://www.regular-expressions.info/javascript.html OK
http://www.webreference.com/js/column5/ ad-bloated,
also elderly.

State which cover only (roughly) IE4-level, and which have non-greedy &
suchlike.

>And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?
<quote>
In computing, a regular expression is a string that is used to describe
xxxxxxxxxxxxxxA ^ sort of
or match a set of strings, according to certain syntax rules.
</quote><G>
The topic is too big to be *covered* in a FAQ 4 part; it can be
introduced and illustrated. It could be covered either in a FAQ Note or
by references.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3? Turnpike 6.05
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htmclpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.htmlnews:borland.* Guidelines
Oct 18 '07 #9
In comp.lang.javascript message <UC*******************@newsfe3-win.ntli.
net>, Thu, 18 Oct 2007 10:32:20, pr <pr@porl.globalnet.co.ukposted:
>FAQEditor wrote:
>Anybody have any URL's to tutorials and/or references for Regular
Expressions?
The four I have so far are:
http://docs.sun.com/source/816-6408-10/regexp.htm

That's an old Netscape JavaScript 1.2 reference: pre-dates numerous
modern conveniences like non-greedy quantifiers, non-capturing
parentheses or lookaheads/behinds (none of which a beginner will
regularly use).
Nevertheless they should be mentioned. A beginner may have a task which
calls for them, or may find them in existing code.
>http://developer.mozilla.org/en/docs...Guide:Regular_
Expressions
Mandatory.

>And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?

I like this, from the Netscape JavaScript 1.3 Guide:

| Regular expressions are patterns used to match character combinations
-------- a good word
>| in strings.

Too short?
Not for a first sentence.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Oct 18 '07 #10
Erwin Moller wrote:
Erwin Moller wrote:
>You might want to add the excelent book "mastering regular expressions".

To my suprise I found it completely online at book.google.
(Why the hell did I buy it?)
[...]

Correction: I was wrong. The books are NOT completely online.
Google implemented some 'viewing limit'.
You can tell I found books.google just now. ;-)
I found the two sample chapters sufficient that are still available
for free (and have not fallen victim to Google yet), but YMMV.

http://www.oreilly.com/catalog/regex/
http://www.oreilly.com/catalog/regex2/
PointedEars
--
"Use any version of Microsoft Frontpage to create your site. (This won't
prevent people from viewing your source, but no one will want to steal it.)"
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Oct 22 '07 #11
On Oct 18, 10:57 am, FAQEditor <clj...@comcast.netwrote:
Anybody have any URL's to tutorials and/or references for Regular
Expressions?

The four I have so far are:

http://docs.sun.com/source/816-6408-...om/js/column5/

The first two came from the FAQ, second two came from a Google Search
for "Javascript Regular Expression" so I am not sure how good they are.

And/or an answer to the question "What are Regular Expressions?" that
would be short enough to put into the FAQ?
This may help as well
http://www.wikicodia.com/wiki/JavaSc...lar_expression
>
--
Randy
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
FAQ Notes:http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6

Oct 22 '07 #12
In comp.lang.javascript message <11**********************@e9g2000prf.goo
glegroups.com>, Mon, 22 Oct 2007 03:12:09, Mohammad Abou-Basha
<mi********@gmail.composted:
>
This may help as well
http://www.wikicodia.com/wiki/JavaSc...lar_expression
The discussion tab suggests otherwise. See also the history tab and the
"Recent Changes" link.

--
(c) John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.
Oct 22 '07 #13

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

Similar topics

6
by: Danny | last post by:
I need an asp command to strip out from a string all extra punctuation such as apostrophe, comma, period, spaces dashes, etc etc and just leave the letters. Can anybody give me some ideas? ...
2
by: ASP.Confused | last post by:
Hey...no one's answering me in microsoft.public.inetserver.asp.general or microsoft.public.scripting.vbscript, so I'm posting this question here. I only need help with a regular expression! ...
3
by: Joe | last post by:
Hi, I have been using a regular expression that I don’t uite understand to filter the valid email address. My regular expression is as follows: <asp:RegularExpressionValidator...
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...
6
by: Wayne Wengert | last post by:
I hope this is an appropriate group for this question - if not, let me know where I should take this question. I want a regular expression that will validate a date in the format mm/dd/yyyy. I...
8
by: Michael Primeaux | last post by:
I'm somewhat new to regular expressions and am in need of assistance. I'd like to match on any OBJECT, EMBED, or APPLET element nested inside an <HTML> element. Would someone point me in the right...
9
by: a | last post by:
I need to write a regular expression to match a quoted string in which the double quote character itself is represented by 2 double quotes. For example: "beginning ""nested quoted string"" end"...
5
by: teo | last post by:
I need to implement a boolean evaluation in a Regular Expression like this: (aaa AND bbb) OR (ccc AND ddd) (see the #3 case) - - - 1) If I need to match a single word only,
6
by: rorymo | last post by:
I have a regular expression that allows only certain characters to be valid in an xml doc as follows: <xs:pattern value="^*" /> What I want to do is also allow any unicode character that is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.