Re: Re: regular expressions
| From: | Børge Holen | Date: | Sun, 19 Nov 2006 22:32:23 +0000 |
| Subject: | Re: Re: regular expressions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244853@lists.php.net to get a copy of this message | ||
On Sunday 19 November 2006 23:25, Al wrote:
> Get "Sams, Teach yourself Regular Expressions" It's a great little, simple
> book.
I'll look that one up. Thank you =)
>
> Then get the Regex Coach. Google to find it. It's free, works great and is
> super for learning regex
And this one, I'm on right now. =) also thanks.
>
> Børge Holen wrote:
> > Ok I seem to need to learn regular expressions more than anything.
> >
> > this is what im working on:
> >
> > ["desc"] = " <c> FFFFFF topic <c> 999999 rest of the text
> > ",
> >
> > $string = preg_replace("/<c>\s\w[0-9A-F]+/","",$string);
> >
> > prints out: topic rest of the text ( with double spaces :(, I
> > thought \s would fix that )
> >
> > however how would I go on this:
> >
> > <font color="colorcode">topic</font>
> > <font color="colorcode">rest of thetext</font>
> >
> > Almost anything I do with the above statement either throws me off with a
> > modifier error or prints out what it should not
> >
> >
> > ---
> > Børge
> > Kennel Arivene
> > http://www.arivene.net
> > ---
--
---
Børge
Kennel Arivene
http://www.arivene.net
---