Farrell, Patrick wrote:
Thanks.

What if I added numbers like this

$msgText =~ s!(?<= )([a-z,0-9]+)(?= )!<bold>$1</bold>!g;

Did you really want to include a comma as part of that character class?


But I didn't want a string of only numbers?

In the strings I waned, I know the first character would not be a number.

$msgText =~ s!(?<= )([a-z][a-z0-9]*)(?= )!<bold>$1</bold>!g;



John
--
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to