I think you are missing something from your description of the problem but if one is to take you at your word then something like:
should suffice.my $foo = "'stuff in quotes'"; $foo =~ /'(.*)'/ and $foo = $1; print $foo;
/J\
In reply to Re: regular expression to retrieve text within single quotes
by gellyfish
in thread regular expression to retrieve text within single quotes
by saldoman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |