Anybody knows how to do this RegExp for Perl?
Posted: Tue Sep 28, 2004 3:09 pm
I have input string like this:
[0020]X[0030] [0040]X[0050] [0060] [0070]
The numbers in the brackets [] are FieldCodes and those next to it are the values.
What I need a regular expression for checking fields with values duplicated. For example, in the above string, I want to see if more than one field ([0020] and [0040]) has the value 'X'.
Can some body help me? I's very urgent.
[0020]X[0030] [0040]X[0050] [0060] [0070]
The numbers in the brackets [] are FieldCodes and those next to it are the values.
What I need a regular expression for checking fields with values duplicated. For example, in the above string, I want to see if more than one field ([0020] and [0040]) has the value 'X'.
Can some body help me? I's very urgent.