Need a better regex for group matching
Posted
by user350233
on Stack Overflow
See other posts from Stack Overflow
or by user350233
Published on 2010-05-25T19:10:29Z
Indexed on
2010/05/25
19:11 UTC
Read the original article
Hit count: 161
regex
Hi,
Presently I'm using two regx:
ABC.*1EFG
ABC.*2HIJ
to retrieve Line 1 and Line 2 from a text file. Is there a better single regex, so that both the lines(L1 and L2) from below can be matched.
Line 1: ABCanystring1EFGanystring
Line 2: ABCanystring2HIJanystring
Line 3: ABCanystring2LMNanystring
.
.
. Line n
Thanks you in advance,
Su
© Stack Overflow or respective owner