Re: preg_match question...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bruce wrote:
> 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 text, but i have to be
> able to match on the "text"
> 
> i've been playing with different preg_match regexs.. but i'm missing
> something obvious!
> 
> thoughts/comments..
> 
> 

Why don't you show us some of the attempts that you have tried that didn't work.

When you say that you need to match on some of the text, give us an example of the text that you are trying to match.

And give us examples of the input text you are trying to match to.

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux