bruce bedoug...@earthlink.net wrote in message
news:234801c98863$88f27260$0301a...@tmesa.com...
hi...
trying to figure out the best approach to using preg_match to extract the
number from the follwing type of line...
131646 sometext follows..
basically, i want to extract the number,
@lists.php.net
Subject: [PHP] Re: preg_match question...
bruce bedoug...@earthlink.net wrote in message
news:234801c98863$88f27260$0301a...@tmesa.com...
hi...
trying to figure out the best approach to using preg_match to extract the
number from the follwing type of line...
131646 sometext
bruce wrote:
hmmm...
tried your preg__match/regex...
i get:
0 - 1145 total
1 - 1145
2 - l
i would have thought that the 2nd array item should have had total...
Probably want this: '#(\d+)(.+)#'
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List
2009/2/6 Shawn McKenzie nos...@mckenzies.net
bruce wrote:
hmmm...
tried your preg__match/regex...
i get:
0 - 1145 total
1 - 1145
2 - l
i would have thought that the 2nd array item should have had total...
Probably want this: '#(\d+)(.+)#'
That's it sorry. Take a look at
Shawn McKenzie nos...@mckenzies.net wrote in message
news:e1.67.59347.e494c...@pb1.pair.com...
bruce wrote:
hmmm...
tried your preg__match/regex...
i get:
0 - 1145 total
1 - 1145
2 - l
i would have thought that the 2nd array item should have had total...
Probably want this:
Nicklas Bondesson wrote:
How do I find an exact match of a string with preg_match?
Example:
String1: www.test.com/
String2: www.test.com/somepage.php?param1=true
How do you write the regexp to only return String1 and not String2 when you
match against www.test.com ??
You should use the ^ and $
you could consider configuring a prebuild html editor (just WYSIWYG)
without any problems of users having to write code at all
check out: http://www.interactivetools.com/products/htmlarea/
Andy Crain [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
My apologies in advance if this too
7 matches
Mail list logo