Jump to content


Photo

REGEX and the corresponding LANGUAGES? your advice needed?


  • Please log in to reply
3 replies to this topic

#1 bilis_money

bilis_money
  • Members
  • PipPipPip
  • Advanced Member
  • 621 posts

Posted 14 August 2006 - 04:21 PM

Ok, now i know
that REGEX is very widespread.

REGEX with Java or with VBscript, or with MySQL, or with PYTHON, or with PERL, or with PHP and etc....

Now my questions are.
What are differences between these REGEX with its corresponding languages.
How do they differ each other?
Are they are all the same?
Or they don't have the same bult in function on its languages?
Are there relativeness between these languages about the REGEX?
Or relationships?

Any nice advice are welcome and must be appreciated a lot.


Thanks!



#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 14 August 2006 - 04:42 PM

You need to pick up Mastering Regular Expressions if you're that concerned. They differ in terms of engines and syntax. To my knowledge, they all have the basics in common, such as *, ^, $, and [...]; things change beyond that.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 bilis_money

bilis_money
  • Members
  • PipPipPip
  • Advanced Member
  • 621 posts

Posted 15 August 2006 - 12:19 AM

Thanks Effigy!

I notice that you know a lot about REGEX, what are the best books that you can recommend?

How about "Mastering REGEX exclusive for PHP only", what do you recommend effigy?


Thanks again for you kind help!



#4 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 15 August 2006 - 04:06 AM

My recommendations are in my signature. There are numerous web resources and the only book that I can recommend, I already have. Mastering Regular Expressions is great. It will probably have more information that you need (how the engines actually work, unicode support, etc.), but it does a good job of getting you to think in terms of regex and there are many examples. The meat of the examples (outside of the language-specific sections) are in Perl, but: (1) this is expected since Perl pushed the envelope with them, and as a result many other languages, including PHP, have PCRE libraries; and (2) they are kept simple as far as understanding Perl is concerned.
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users