nysus has asked for the wisdom of the Perl Monks concerning the following question:
But it results in the following bad output:$rep_contact_info =~ s/(<\s*table.*?width\s*=\s*"*).*?("*.*?>)/{$1}300 +{$2}/si;
Obviously, I'm having problems replacing the original dimension. I'm also having problems with those brackets showing up which I though were metacharacters. Another pair of more experienced eyeballs on this problem will be much appreciated. Thanks.{<table width="}300{620" border="0">}
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reg Ex Problem: Changing width dimension in HTML table
by arthas (Hermit) on May 20, 2003 at 15:57 UTC | |
|
Re: Reg Ex Problem: Changing width dimension in HTML table
by Mr. Muskrat (Canon) on May 20, 2003 at 15:53 UTC | |
by nysus (Parson) on May 20, 2003 at 16:21 UTC | |
|
Re: Reg Ex Problem: Changing width dimension in HTML table
by Ovid (Cardinal) on May 20, 2003 at 17:33 UTC | |
by nysus (Parson) on May 20, 2003 at 19:25 UTC | |
by Ovid (Cardinal) on May 20, 2003 at 19:39 UTC | |
|
Re: Reg Ex Problem: Changing width dimension in HTML table
by CombatSquirrel (Hermit) on May 20, 2003 at 16:22 UTC |