texuser74 has asked for the wisdom of the Perl Monks concerning the following question:
I want to tag only the alphabets found inside <exp> and </exp> with the italic tag <it></it>. I want to skip numbers, symbols and entities. If a number, symbol or entity comes in between the text then <it> tag should close and then open.
example 1
input:<exp>a+b+β</exp><br> output:<exp><it>a</it>+<it>b</it>+β</exp><br>
example 2
input:<exp>2a+α-b2</exp><br> output:<exp>2<it>a</it>+α-<it>b</it>2</exp><br>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find and replace
by BUU (Prior) on Dec 28, 2004 at 04:26 UTC | |
|
Re: find and replace
by gopalr (Priest) on Dec 28, 2004 at 11:50 UTC | |
|
Re: find and replace
by perlsen (Chaplain) on Dec 28, 2004 at 11:58 UTC | |
|
Re: find and replace
by superfrink (Curate) on Dec 28, 2004 at 05:49 UTC | |
by Anonymous Monk on Dec 28, 2004 at 07:37 UTC | |
|
Re: find and replace
by gube (Parson) on Dec 28, 2004 at 14:21 UTC | |
by texuser74 (Monk) on Dec 29, 2004 at 01:34 UTC |