..so how can I ensure it takes only those words which start with " not end with "..
You ask Perl to do that exactly like so:
..produces...print join "\n" => grep /"\w+?/, qw( abc efgh" "ijk lmn "opqr stuv");
Please, pay close attention to the link provided by Happy-the-monk"ijk "opqr
In reply to Re^3: grep for ending with double quotes
by 2teez
in thread grep for ending with double quotes
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |