PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Jul 27, 2017 3:39 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu May 05, 2005 8:42 pm 
Offline
DevNet Master

Joined: Thu Jan 30, 2003 9:26 pm
Posts: 2893
Location: Glasgow, Scotland
Regex was invented by evil madmen. At least it seems like that at first - soon it starts to make sense. If there was a Society for Semasiological Research, and they awarded prizes for languages which cram the most meaning into the smallest number of symbols, regex would sweep the board.

Try these links to get started and post questions or useful expressions in this forum.

http://www.regular-expressions.info/tutorial.html
http://www.evolt.org/article/rating/20/22700/index.html

And don't forget this handy tool: http://weitz.de/regex-coach/


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:18 pm 
Offline
Forum Contributor

Joined: Tue Mar 09, 2004 10:05 am
Posts: 168
Location: Arkansas, USA
Cool, this will come in very handy.

Thank you :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 9:45 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
Maybe afterall it is time I dwell in the magical world of regex ;)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 3:35 am 
Offline
DevNet Resident
User avatar

Joined: Wed Oct 09, 2002 6:51 pm
Posts: 1206
Location: Keele, U.K.
Thanks McGruff now I will have no excuse not to understand the basics of regex. No what will I be able to tell my boss? :x


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 3:36 am 
Offline
DevNet Resident

Joined: Tue Nov 18, 2003 2:09 pm
Posts: 1826
Location: Middlesbrough, UK
good idea, ill be here way too much, somebody writing a small tutorial for regex noobs would be a nice way to open the board ::hint hint::


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 5:46 am 
Offline
Forum Regular
User avatar

Joined: Wed Jul 30, 2003 3:29 am
Posts: 875
Location: Sweden
Great, This should make searching/finding info on various regexp much easier :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 8:02 am 
Offline
Forum Regular
User avatar

Joined: Sat Mar 12, 2005 8:13 pm
Posts: 703
Location: US
alright! too many RE questions floating around. :P


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 8:06 am 
Offline
DevNet Resident
User avatar

Joined: Tue Jan 20, 2004 5:58 pm
Posts: 1537
Location: Minnesota
Quick! Someone ask a REGEX question!!!!!



:lol:


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 8:45 am 
Offline
DevNet Master
User avatar

Joined: Thu Aug 15, 2002 5:53 am
Posts: 4235
Location: Sussex, UK
How many regEx does it take to change a lightbulb? ;)



Answer:

\d


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 06, 2005 8:47 am 
Offline
Forum Contributor

Joined: Tue Mar 09, 2004 10:05 am
Posts: 168
Location: Arkansas, USA
*Bangs head on desk*

That was awful. :P


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 07, 2005 5:55 pm 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
The Monkey wrote:
*Bangs head on desk*

That was awful. :P


heh... Must be a regex thing.... I actualy thought it was very funny (still laughing :P )


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 07, 2005 6:21 pm 
Offline
Forum Regular
User avatar

Joined: Sat Mar 12, 2005 8:13 pm
Posts: 703
Location: US
hahaha. pretty funny, man. :P


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 19, 2005 4:01 am 
Offline
PHP Evangelist
User avatar

Joined: Tue Aug 13, 2002 3:35 pm
Posts: 3547
Location: Calgary, Canada
Here is some more links:

http://weblogtoolscollection.com/regex/regex.php
http://www.phpbuilder.com/columns/dario19990616.php3
http://www.articlecity.com/articles/web ... _360.shtml


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 19, 2005 9:30 am 
Offline
Forum Contributor
User avatar

Joined: Wed Jun 29, 2005 10:04 pm
Posts: 277
Location: Iowa, USA
patrikG wrote:
How many regEx does it take to change a lightbulb? ;)



Answer:

\d


I am pretty sure the answer is

\d(?<!0)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 19, 2005 9:46 am 
Offline
Breakbeat Nuttzer
User avatar

Joined: Wed Mar 24, 2004 8:57 am
Posts: 13098
Location: Melbourne, Australia
sweatje wrote:
patrikG wrote:
How many regEx does it take to change a lightbulb? ;)



Answer:

\d


I am pretty sure the answer is

\d(?<!0)



That's a lookbehind done wrong :P

I guess you meant a lookahead ;)

\d(?!0)

o_O d11wtq is Mr Pedantic for the rest of the day :P


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group