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
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
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
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
> 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...
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
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
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
> 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
9 matches
Mail list logo