I
Igor
Hi all,
I need to create a regular expression to have a match if first 5 characters
of the string are the same as last 5 characters of the same string. And
that’s easy:
^(?<group1>\w{5})\w*\k<group1>$
Now’s the challenge (at least for me). First 5 characters are lowercase and
the last 5 characters is upper case, but match is still has to happen.
Converting the input string to upper/lower case is not an option as it'll
break other functionality.
I'm not sure if it's doable. Any help would be greatly appreciated.
Igor
I need to create a regular expression to have a match if first 5 characters
of the string are the same as last 5 characters of the same string. And
that’s easy:
^(?<group1>\w{5})\w*\k<group1>$
Now’s the challenge (at least for me). First 5 characters are lowercase and
the last 5 characters is upper case, but match is still has to happen.
Converting the input string to upper/lower case is not an option as it'll
break other functionality.
I'm not sure if it's doable. Any help would be greatly appreciated.
Igor