Jump to content

how long should a newbie in REGEX spending time figuring out?


bilis_money

Recommended Posts

ok, i'm really new to REGEX.

and i think i'm spending too many hours just staring on an expression.
now tell me as a newbie on REGEX how many hours should a newbie spend on
figuring out and starring on one expression alone?

i think i'm spending 5 hours and 10 hours just for one expression alone.
is this bad for me as a newbie to REGEX or it's a normal routine?

ok, to give you an idea on what i'm starring at.
i'm figuring out how to upload multiple files using array, foreach and regex as well.

or is it now imperative for me to buy the book of Jeffrey Friedl's "Mastering Regular ExpressioN"?

thank you very much in advance on your comments and suggestions.


Link to comment
Share on other sites

Depends on the expression--take a look at [url=http://ex-parrot.com/~pdw/Mail-RFC822-Address.html]this[/url]. When you work with an expression deconstruct it piece by piece. If you're using preg, use the x modifier to document it:

[code]/
(\d+) # capture all digits
a # then look for an 'a'...
/x[/code]
Link to comment
Share on other sites

  • 2 weeks later...
dont worry man it will flick eventually my recommendation is start small and work up...
once it clicks its sooooooo much easier..
i found a little book to regular expressions to give notes on whats what and such and that helped no end while i was writting it.. so have a look about..
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.