Just another Perl shrine | |
PerlMonks |
Perl regex matchby Eshan_k (Acolyte) |
on Feb 11, 2015 at 03:14 UTC ( [id://1116271]=perlquestion: print w/replies, xml ) | Need Help?? |
Eshan_k has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I want to match only words like "abcunit", "hedhdunit", "ewedfunit" and get into array from a text file using regex. Can any one please tell how can I get only that word in line. So for I am using /(....unit)/g but the charcters before "unit" are varying. Can any one please tell perfect regex for this. Any help will be greatly appreciated.
Back to
Seekers of Perl Wisdom
|
|