Re: [PHP] Pattern Matching

2009-08-07 Thread Floyd Resler
Martin, Thanks! Not only did that help tremendously but it also gave me a better understand of regular expressions. Thanks! Floyd On Aug 6, 2009, at 6:15 PM, Martin Scotta wrote: here you have the regexp's = \d{8} AA = \w{6} #A? = [\w\d]* (change the * for + to require at le

Re: [PHP] Pattern Matching

2009-08-06 Thread Martin Scotta
here you have the regexp's = \d{8} AA = \w{6} #A? = [\w\d]* (change the * for + to require at least 1 character) ##-A#A = \d\d-\w\d\w wrote: > I need some assistance in pattern matching. I want allow the admin user to > enter a pattern to be matched in my order form editor. When

Re: [PHP] Pattern Matching[Resolved]

2009-07-15 Thread VamVan
On Wed, Jul 15, 2009 at 4:21 AM, Lenin wrote: > On Wed, Jul 15, 2009 at 3:24 AM, VamVan wrote: > > > contact/me - Contact US > > > > perfect match would be easy because I can exactly look for what I want. > > > > It becomes tricky when I introduce wild cards like contact/* for example. > It > > c

Re: [PHP] Pattern Matching

2009-07-15 Thread Lenin
On Wed, Jul 15, 2009 at 3:24 AM, VamVan wrote: > contact/me - Contact US > > perfect match would be easy because I can exactly look for what I want. > > It becomes tricky when I introduce wild cards like contact/* for example. It > could also be contact/me/* > > How would I match patterns for this

Re: [PHP] pattern matching for the dot-sign

2003-06-05 Thread CPT John W. Holmes
> I am looking for a way to replace "." (=dot) to "," in a string with either > ereg_replace or preg_match . I read the manual in PHP on Pattern matching > for preg_match but could not immediately trace it. > All help appreciated. If that's all you need to do, use str_replace(). ---John Holmes...

Re: [PHP] pattern matching urls

2002-08-26 Thread Justin French
I spotted a class or function on phpclasses.org a few days back that does this. Justin French on 28/08/02 4:40 AM, tux ([EMAIL PROTECTED]) wrote: > > > > hey all, > > Just wanting some advice on something im doing, basically im storing > news into mysql and what i want to do is, when the n

Re: [PHP] Pattern matching in PHP

2002-03-13 Thread RIVES Sergio
i guess you are searching for this function : number_format($number); http://www.php.net/manual/en/function.number-format.php Hope it could help you SR Claudiu a écrit : Claudiu a écrit : > Hello! > > I have a number... say 12234109 i want to transform it to 12,234,109 > or 10312 transformed

Re: [PHP] Pattern matching and replacement!

2001-05-08 Thread heinisch
At 08.05.01 10:03, you wrote: > >Hello all, > >I have a slight problem. I am storing an email template in a MySQL DB. >Portions of the email have text that need to be replaced with variable >values when run through the script >ex: > >Sehr geehrte(r) Frau/Herr {%Last_Name%} , >Dies ist eine autom

RE: [PHP] Pattern matching and replacement!

2001-05-08 Thread Jason Murray
> As you can see. I am using the {% and %} to delimit the parts > that need to be replaced. I can't get the replacements to work > right though. Can someone help? $text = ereg_replace("\{\%Last_Name\%\}", $lastname, $text); Should be something like that :) Jason -- PHP General Mailing Lis