bilis_money Posted June 18, 2006 Share Posted June 18, 2006 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 onfiguring 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. Quote Link to comment Share on other sites More sharing options...
poirot Posted June 18, 2006 Share Posted June 18, 2006 Although it depends on the expression, 5 to 10 hours is way too much.Regex has a very heavy "grasp factor": once you understand it, it becomes easy. Quote Link to comment Share on other sites More sharing options...
effigy Posted June 19, 2006 Share Posted June 19, 2006 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] Quote Link to comment Share on other sites More sharing options...
poirot Posted June 20, 2006 Share Posted June 20, 2006 That regex is useless, I guess:[a href=\"http://www.regular-expressions.info/email.html\" target=\"_blank\"]http://www.regular-expressions.info/email.html[/a] Quote Link to comment Share on other sites More sharing options...
JimChuD Posted July 4, 2006 Share Posted July 4, 2006 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.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.