in reply to
Re: regular expression help
in thread
regular expression help
Hello Ikegami,
Thanks for the solution it works.
If the data is \t (tab) separated instead of comma separated, should I be replacing all the commas in the reg expression to \s as shown.
print grep /^(?:
^\s
*\s){4}\s{3}\d\s0\s\d/, <DATA>; Thanks
Bobafett
Comment on
Re^2: regular expression help
Replies are listed 'Best First'.
Re^3: regular expression help
by
Cristoforo
(Curate)
on Jul 24, 2008 at 23:42 UTC
print grep /^(?:[^\t]*\t){4}\t{3}\d\t0\t\d/, <DATA>;
[reply]
[d/l]
In Section
Seekers of Perl Wisdom