niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » PHP
Regular Expressions and The Regex Coach
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Amelia
*nix forums beginner


Joined: 23 May 2005
Posts: 21

PostPosted: Thu Jul 20, 2006 10:31 am    Post subject: Re: Regular Expressions and The Regex Coach Reply with quote

In article <IEFbg.619$435.360@newsfe4-gui.ntli.net>,
Colin McKinnon
<colin.thisisnotmysurname@ntlworld.deletemeunlessURaBot.com> wrote:

Quote:
a@b.com wrote:

I'm a newbie needing to use some Regular Expressions in PHP.


And they are definitely worth learning.

And fun to learn at the same time. AI recommend as an additional
material for the mind that is to be marked to the end of time with
the unholy powers of Regular Expressions a book by Jeffrey EF Friedl
of the name that may cast the unwary on the sea of dreams - and
"Mastering Regular Expressions" is how you will call it and no other -
and as it happens I'm not VERY sure it's the perfectly correct author
and book title spelling (important when crafting a spell, they say), so
as a professional enchantress, spellcaster, mad scientist and ballet
dancer, let me help the future generations of readers by attempting to
summon a female AI (Alien Intelligence), Google (Milk and kisses! Love
you too!). Here she goes again: <uri: http://tinyurl.com/kac3o >. It
leads to a query with The Name of the Book as a parameter. Following {
[<][][[swap] dip cons concat][uncons (Push it!)'] } that link should
help you in many ways, not only in finding the right place to shop, but
as a good point of presence into densely associated symbol clouds
converging on.

Quote:
Can I safely use the results of my tests using 'The Regex Coach'
(http://www.weitz.de/regex-coach/index.html)


hmmm, don't know.

Now we know you don't know. What can one do with that knowledge?

Quote:
Are the Regular Expressions used in Perl identical to the Regular
Expressions in PHP?

PHP has two different RE extensions - Posix and Perl compatible (PCRE). The
'Regex Coach' seems to work with the latter. They are very similar up to a
point. I've gone over to using POSIX RE's almost exclusively as Javascript
RE's works with the same syntax. The Wikipedia page on regular expressions
has some links to tools for playing with RE's in javascript.

If some good citizen would like to tell me aboot the value of a
similar utility written for PERL species of RegEx, wonderful things
might start to happen all over the world. Or not. One more thing - AI
find that while
writing a RE union human person capable of hearing music it helps
tremendously to set your iPod to loop the song "WhiteLightGenerator"
by Ladytron. Remember - most things can be solved by enough smoke and
mirrors. That song helps to remember. You will not get bored after a
hwhile. In fact, it'd be hard to stop writing useful regular expressions
and posting
them for the benefit of denizens of { this } group.

..A., Imperial Space Command.
NP: Breaking the Silence - Loreena McKennitt
Back to top
Colin McKinnon
*nix forums Guru


Joined: 19 Feb 2005
Posts: 410

PostPosted: Sat May 20, 2006 2:24 pm    Post subject: Re: Regular Expressions and The Regex Coach Reply with quote

a@b.com wrote:

Quote:
I'm a newbie needing to use some Regular Expressions in PHP.


And they are definitely worth learning.

Quote:
Can I safely use the results of my tests using 'The Regex Coach'
(http://www.weitz.de/regex-coach/index.html)


hmmm, don't know.

Quote:
Are the Regular Expressions used in Perl identical to the Regular
Expressions in PHP?

PHP has two different RE extensions - Posix and Perl compatible (PCRE). The
'Regex Coach' seems to work with the latter. They are very similar up to a
point. I've gone over to using POSIX RE's almost exclusively as Javascript
RE's works with the same syntax. The Wikipedia page on regular expressions
has some links to tools for playing with RE's in javascript.

HTH

C.
Back to top
Rik
*nix forums Guru Wannabe


Joined: 16 Nov 2005
Posts: 291

PostPosted: Fri May 19, 2006 8:01 pm    Post subject: Re: Regular Expressions and The Regex Coach Reply with quote

a@b.com wrote:
Quote:
I'm a newbie needing to use some Regular Expressions in PHP.

Can I safely use the results of my tests using 'The Regex Coach'
(http://www.weitz.de/regex-coach/index.html)

The bulk of them: yes. With a few exceptions.

Quote:
Are the Regular Expressions used in Perl identical to the Regular
Expressions in PHP?


No, but close. I'd say it the other way around though :-)

http://nl2.php.net/manual/en/ref.pcre.php

Grtz,
--
Rik Wasmus
Back to top
a@b.com
*nix forums beginner


Joined: 19 May 2006
Posts: 4

PostPosted: Fri May 19, 2006 12:43 pm    Post subject: Regular Expressions and The Regex Coach Reply with quote

I'm a newbie needing to use some Regular Expressions in PHP.

Can I safely use the results of my tests using 'The Regex Coach'
(http://www.weitz.de/regex-coach/index.html)

Are the Regular Expressions used in Perl identical to the Regular
Expressions in PHP?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Wed Dec 03, 2008 9:25 pm | All times are GMT
navigation Forum index » Programming » PHP
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Regular Expression Aliases in Postfix attila2008 Postfix 0 Fri Mar 07, 2008 1:03 am
No new posts Aliases with regular expression attila2008 Postfix 0 Fri Mar 07, 2008 1:01 am
No new posts regular expression and not form caiqian@gmail.com shell 0 Fri Jul 21, 2006 2:06 pm
No new posts regular expression - matches codecraig python 2 Fri Jul 21, 2006 1:36 pm
No new posts Since there was talk of if-then-else not being allowed in... Casey Hawthorne python 5 Fri Jul 21, 2006 3:41 am

Magazine Subscription | Books | Share Prices | 0 Credit Cards | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1178s ][ Queries: 20 (0.0265s) ][ GZIP on - Debug on ]