[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Regular expressions, ...
****** message to minivend-users from Frank Miedreich <miedreich@acm.org> ******
>****** message to minivend-users from Rainer Jung <rj@no-art.de> ******
>
>Hi !
>
>I am searching for a method to replace html-tags from the
>Descriptionfield to generate the E-Mail without these Tags.
>Now can anyone tell me, if there is another method than using
>[perl] ... s/<.*>//g ... [/perl] ?
>
> Rainer
unless you want to include a real parser I find something like this
the most convenient way.
You should use <.+?> in you experession though.
All HTML tags are at least 1 character long, more importantly your
expression would match the whole string "<em>whatever</em>", instead
of just the tags themselves.
Frank
--
Frank Miedreich
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list