I want the o/p should be "-DFLAG1 -global -DFLAG2 -DFLAG1". But I am getting DFLAG1. Can you pl. help me? Thanks Ashok$_ = "text1 text2 -f -DFLAG1 -global -DFLAG2 -DFLAG1"; $str = s/.*\-D*?//; print "$_\n";
In reply to Regular Expression by ashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |