Hi,
Is it possible to use built-in function like "reverse" inside regex.
for example: If there is a string "isasdffdsakk" I want to capture "asdffdsa" by using reverse function inside regex.
$string = 'isasdffdsakk'; if($string =~ /(.*?)(reverse\1)/s){ print $1,$2; }
Thank you.
In reply to use of built-in function in regex... by pkumar.pr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |