$line=~ s/^ #Anchor at the beginning of the line logfile\s*=\s*([^,]*?) # As before (:?,.*)? # non-capturing optional block beginn +ing with a comma $ # Anchor at end of line /$1/x;
In reply to Re: perl string extract
by Utilitarian
in thread perl string extract
by anu_1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |