Any questions involving matching text strings to patterns - the pattern is called a "regular expression."
Moderator: General Moderators
The Monkey
Forum Contributor
Posts: 168 Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA
Post
by The Monkey » Thu May 05, 2005 9:18 pm
Cool, this will come in very handy.
Thank you
John Cartwright
Site Admin
Posts: 11470 Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:
Post
by John Cartwright » Thu May 05, 2005 9:45 pm
Maybe afterall it is time I dwell in the magical world of regex
phpScott
DevNet Resident
Posts: 1206 Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.
Post
by phpScott » Fri May 06, 2005 3:35 am
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?
malcolmboston
DevNet Resident
Posts: 1826 Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK
Post
by malcolmboston » Fri May 06, 2005 3:36 am
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::
vigge89
Forum Regular
Posts: 875 Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden
Post
by vigge89 » Fri May 06, 2005 5:46 am
Great, This should make searching/finding info on various regexp much easier
Skara
Forum Regular
Posts: 703 Joined: Sat Mar 12, 2005 7:13 pm
Location: US
Post
by Skara » Fri May 06, 2005 8:02 am
alright! too many RE questions floating around.
neophyte
DevNet Resident
Posts: 1537 Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota
Post
by neophyte » Fri May 06, 2005 8:06 am
Quick! Someone ask a REGEX question!!!!!
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Fri May 06, 2005 8:45 am
How many regEx does it take to change a lightbulb?
Answer:
\d
The Monkey
Forum Contributor
Posts: 168 Joined: Tue Mar 09, 2004 9:05 am
Location: Arkansas, USA
Post
by The Monkey » Fri May 06, 2005 8:47 am
*Bangs head on desk*
That was awful.
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Sat May 07, 2005 5:55 pm
The Monkey wrote: *Bangs head on desk*
That was awful.
heh... Must be a regex thing.... I actualy thought it was very funny (still laughing
)
Skara
Forum Regular
Posts: 703 Joined: Sat Mar 12, 2005 7:13 pm
Location: US
Post
by Skara » Sat May 07, 2005 6:21 pm
hahaha. pretty funny, man.
m3mn0n
PHP Evangelist
Posts: 3547 Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada
Post
by m3mn0n » Sat Nov 19, 2005 3:01 am
sweatje
Forum Contributor
Posts: 277 Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA
Post
by sweatje » Sat Nov 19, 2005 8:30 am
patrikG wrote: How many regEx does it take to change a lightbulb?
Answer:
\d
I am pretty sure the answer is
\d(?<!0)
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Sat Nov 19, 2005 8:46 am
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
I guess you meant a lookahead
\d(?!0)
o_O d11wtq is Mr Pedantic for the rest of the day