How do i remove with regexp all the chars of the $q variable content, starting from the beginning of it and down to $a, including $a variable content? -- Something like:my $q='qqqweqwe asdasdasd zxczxczxc tyutyutyi '; my $a='zxczxczxc';
-- if it could work with multiline. (As the content of both variables can change, the regexp uses * instead of +). Thank you.$q=~s#[.\n]*$a##;
In reply to Multiline replace regexp. by nikolay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |