[luau] Perl String Question

Matthew John Darnell mdarnell at servpac.com
Wed Mar 24 17:46:00 PST 2004


Aloha,

If I have a string "<b>Yo ho ho and a bottle of rum</b>" is there an elegant way to eliminate the '<b>' & '</b>'?

It would also need to return nothing for the string "<b></b>"

I could hack something up, but I am thinking it could be accomplished in one line of code.  I am sure there is more than one way to do it.

As you probably guessed, I am parsing a web page.

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freesoftwarehawaii.org/pipermail/luau-freesoftwarehawaii.org/attachments/20040324/e32b11cc/attachment-0001.htm>


More information about the LUAU mailing list