Re: preg_replace help
| From: | Jackson Miller | Date: | Tue, 03 Jun 2003 16:51:52 +0000 |
| Subject: | Re: preg_replace help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-150012@lists.php.net to get a copy of this message | ||
On Tue, 2003-06-03 at 11:52, Jim Lucas wrote:
> What do you mean by additional modifiers?
Some links may be in the format:
<a href="http://domain.tld/page.ext"
target="target" name="description
of the link">link name</a>
I just want to ignore any of those modifiers in the text version.
-Jackson
>
> Jim Lucas
> ----- Original Message -----
> From: "Jackson Miller" <jackson@coldfeetcreative.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, June 03, 2003 9:43 AM
> Subject: [PHP] preg_replace help
>
>
> > I am trying to create a text only version of an HTML formatted message.
> > I would like to convert all links from:
> > <a href="http://domain.tld.page.ext">link
> > name</a>
> > to:
> > link name [http://domain.tld/page.ext]
> >
> > The problem is that some links may have additional modifiers and onthers
> > may not.
> >
> > I have seen many examples of doing the reverse, but I can't seem to find
> > an example of this.
> >
> > If anyone has done something similar and would like to share, please do.
> >
> > Thanks,
> > -Jackson
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>