Simplest way is:
That starts at any given asterisk and selects till the next.$text =~ s/\*([^*]+)\*/<em>$1<\/em>/g;
stephen
In reply to Re: How to bold text with regexp...
by stephen
in thread How to bold text with regexp...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |