[PHP] Re: preg_match question...

2009-02-06 Thread Frank Stanovcak
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,

RE: [PHP] Re: preg_match question...

2009-02-06 Thread bruce
@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

Re: [PHP] Re: preg_match question...

2009-02-06 Thread 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+)(.+)#' -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Alpár Török
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

Re: [PHP] Re: preg_match question...

2009-02-06 Thread Frank Stanovcak
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:

[PHP] Re: preg_match question

2004-08-18 Thread Chris Jenkinson
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 $

[PHP] Re: preg_match question: locating unmatched HTML tags

2003-02-22 Thread php
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