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
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
someone then places an order I want to do a match based on that
pattern. Some of the examples I thought for the patterns are:
- must be numeric a
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
Hello Guys,
I have a question related to pattern matching and wildcards. This is the
scenario.
I have friendly urls on my website. So retrive their path as arguments for
every page.
so for example if I have www.xx.com/contact/me my args array will be
args(
0 => contact,
1 => me
)
My requ
> 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...
LS,
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.
Wim
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
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
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 news is displayed, if
a url is in there ie(http://www.blahblah.com OR
mailto:[EMAIL PROTECTED]) it will automatically be displayed as a link,
im considering using pr
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
Hello!
I have a number... say 12234109 i want to transform it to 12,234,109
or 10312 transformed to 10,312 ... i guess you got my point..
Is there a way doing this... I believe pattern matching...but i dont know
how to do it...
Or any other solution?
Thanks...
--
PHP General Mailing List (ht
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
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 automatische Zusendung von ACNS Billing and
15 matches
Mail list logo