EDI Source Regular Expression Syntax

50 views
Skip to first unread message

zau...@gmail.com

unread,
Jan 3, 2017, 10:11:06 AM1/3/17
to COZYROC
Hello!

I couldn't find information on what Regular Expression engine you guys use.  

I'm trying to match two different patterns:

File Example:

~NM1*IL*ABC*123
~NM1*40*ABC*123
~NM1*74*ABC*123
~NM1*IL*ABC*123

I need to find NM1 followed by IL or 74 and put them in one loop.

Everything else will need to go in a second loop.  Below are my two regular expressions:


NM1\*(IL|74)


NM1\*(?!IL|74)

Ivan Peev

unread,
Jan 3, 2017, 10:14:25 AM1/3/17
to COZYROC
Hello,

We use the regular .NET Regex class for processing the regular expressions. This regular expression looks fine: NM1\*(IL|74)
Reply all
Reply to author
Forward
0 new messages