Page 1 of 1

My first regex tutorial

Posted: Thu Jan 11, 2007 6:58 pm
by kerouac3001
Hi guys..this is my first post and i'm gonna promote a mine tutorial, so it can seem a bit "spam". If there is any problem just say it to me or edit my post.

I've written a regex tutorial for dummies and i wish to know what do you think about it :)

Here is the link to my regex tutorial.

Posted: Thu Jan 11, 2007 7:27 pm
by feyd
Errors:
  • various grammatic errors
  • Email verification non-compliant
    [a-zA-z0-9_\.]+@[a-zA-Z0-9-]+\.[a-zA-Z]{0,4}
  • Phone number pattern
    [0-9]+\[0-9]+
  • denying misspelled
    "dening"
  • forward assertion
    extra Michael highlighted
Notes:
  • It may be good to use the asterisk some more.
  • I'm not sure I'd lump assertions with the question mark.
  • An example of backward assertions could prove useful to some.

Posted: Fri Jan 12, 2007 3:53 am
by kerouac3001
Thanks! it ll be very useful to me :D

Posted: Fri Jan 12, 2007 7:12 am
by Chris Corbyn
Looks good to me, but take on board feyd's comments to correct those mistakes ;)

One other thing I'd change "Class repetition operators" should really be called "Quantifiers" and on the same note, "?" is a quantifer {0,1} not an assertion. You can keep calling them class repetition operators if you like because it's a bit newbie-friendly, but I'd ceranly highlight the correct terminology otherwise reader will get confused when reading other topics around regular expressions.

Posted: Fri Jan 12, 2007 11:30 am
by kerouac3001
Tnx!

My translator is a friend (not an expert) and he had a problem to translate some technical terms :)

I'll correct the tutorial :)