I am trying to replace a single character in a word with wild character and ended up with error
Here is my code
my $test = "Here is the there"; $test =~s/(ther*)/\<test\>$1\<\/test\>/ig; print "$test\n";
The output is "Here is <test>the</test> <test>the</test>re"
But the expected output is "Here is the <test>there</test>
My intention is this * need to represent a character after the string ther.
In reply to Wild card in regular expression by sathya_myl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |