Monday, 12 August 2013

Grep character sequence

Grep character sequence

I need to grep character sequence of the form ABCD12345 and another of the
form ABCD54321.aaa I have written the code for check for both, but it only
works id ABCD12345 is present.
If I detect ABCD54321.aaa, I get ABCD54321.aaa and ABCD54321.
How do I modify my regular expression so that I dont get ABCD54321 when I
detect ABCD54321.aaa?
Thanks,
AB

No comments:

Post a Comment