Search Results

Search: Posts Made By: KevinADC
46,182
Posted By KevinADC
I can't think of how to do all that with a single...
I can't think of how to do all that with a single regexp. Maybe someone else can.
46,182
Posted By KevinADC
If you know the pattern you want to match that is...
If you know the pattern you want to match that is what you would use:

my $str = '(foo ((bar)))';
my ($n) = $str =~ /(\Q((bar))\E)/;
print $n;

\Q escapes the meta meaning of the parenthesis...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy