in reply to How to bold text with regexp...
Simplest way is:
That starts at any given asterisk and selects till the next.$text =~ s/\*([^*]+)\*/<em>$1<\/em>/g;
stephen
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How to bold text with regexp...
by thelenm (Vicar) on Apr 24, 2002 at 14:58 UTC |
In Section
Seekers of Perl Wisdom