"Shawn McKenzie" 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:
2009/2/6 Shawn McKenzie
> 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 lo
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 (ht
hp-general@lists.php.net
Subject: [PHP] Re: preg_match question...
""bruce"" 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 typ
""bruce"" 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, without the t
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 $ c
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 t
7 matches
Mail list logo