costas has asked for the wisdom of the Perl Monks concerning the following question:
and want to change it to<td>english text</td>
it works fine, however some td tags contain b tags and i want to keep them intact. HOw can i write the reg ex so that if a b tag exists then keep it. ie.... from<td>swedish text</td>
to<td><b>uk text</b></td>
thanks<td><b>swedish text</b></td>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: shameful reg expression
by dragonchild (Archbishop) on Feb 18, 2002 at 17:32 UTC | |
|
Re: shameful reg expression
by grep (Monsignor) on Feb 18, 2002 at 17:34 UTC | |
|
Try HTML::Parser
by Kozz (Friar) on Feb 18, 2002 at 17:36 UTC |