Re: [PHP] Re: preg_match and dates

2009-03-02 Thread Michael A. Peters
Peter Ford wrote: Michael A. Peters wrote: I have absolutely no control over the source file. The source file is an xml file (er, sort of, it doesn't follow any particular DTD) and has a tag called VERBATIM_DATE in each record - looks to be required in their output as every record so far has it

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

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

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

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

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 (ht

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

2009-02-06 Thread bruce
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"... -Original Message- From: Frank Stanovcak [mailto:blindspot...@comcast.net] Sent: Friday, February 06, 2009 6:15 AM To: php-general@lists

Re: [PHP] Re: preg_match() returns false but no documentation why

2007-05-30 Thread Paul Novitski
On 5/30/07, Jim Lucas <[EMAIL PROTECTED]> wrote: The op will need to use something other than forward slashes. At 5/30/2007 03:26 PM, Jared Farrish wrote: You mean the delimiters (a la Richard's suggestion about using '|')? Hi Jared, If the pattern delimiter character appears in the pat

Re: [PHP] Re: Preg_match - Find URL and convert to lower case

2006-12-01 Thread Jonesy
On Fri, 1 Dec 2006, Kevin Murphy wrote: > On Nov 30, 2006, at 7:50 PM, Jonesy wrote: >> On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote: >>> >>> I have some text that comes out of a database all in uppercase (old >>> IBM Mainframe that only supports uppercase characters). >> >> I see via oth

Re: [PHP] Re: Preg_match - Find URL and convert to lower case

2006-12-01 Thread Kevin Murphy
On Nov 30, 2006, at 7:50 PM, Jonesy wrote: On Thu, 30 Nov 2006 14:16:16 -0800, Kevin Murphy wrote: I have some text that comes out of a database all in uppercase (old IBM Mainframe that only supports uppercase characters). I see via other followups that you have your kludge working. *But*

Re: [PHP] Re: Preg_match - Find URL and convert to lower case

2006-12-01 Thread Dave Goodchild
In that case you could use the /e trailing option to use strtolower on the subpattern.

RE: [PHP] Re: preg_match

2003-06-20 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks, I weas reading on the php website under the preg_match functino and people were saying that you had to excape the $ so that iw ould be evaluated right. That's what got me confused. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] W