my code s/(\;do.*)(\<\/iframe\>\'\)\;)/sss/; matches only first 4 symbols...
The regex inside your substitution matches the whole string, not "only first 4 symbols", whatever you mean by "symbol".
So, what do you want to do?
Update: The OP silently updated his node, so this reply might or might not be irrelevant now.
In reply to Re: trouble with regular expressions
by moritz
in thread trouble with regular expressions
by programmer.perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |