$test = "mouse_eatsCat_andDog.txt"; $test =~ s/"_(.+)"/$1/; #because I want to get "eatsCat_andDog.txt"
Your string doesn't contain a quote(") followed by an underscore(_), so your regex never matches.
In reply to Re: s/// operator
by BrowserUk
in thread s/// operator
by perlUser345
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |