Depending on how you're testing your regex, your problem could be whether you're escaping the "\" in your string.use strict; while(<DATA>){ print m|-f\s+(\S+makefile)|i; } __DATA__ make -r -f ..\../tools/cell/makefile cell.lib
In reply to Re: using regular expression to extract subset from a line
by johnnywang
in thread using regular expression to extract subset from a line
by ramthen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |