I want to use regex to do a grouping with a search and replacement string technique for EDI purposes and can i force the replacment to be within a certain size constraint in my EDI output?
INPUT:
01234567890123456789012345678901234567890123456789012345678901234567890123456789
EINSTEIN ALBERT 165
Regex Unnamed Grouping Search:
(.*{20})(.*{20})(.*{20})
Regex Grouping Replace:
First:\2Last:\1IQ:\3
Output:
01234567890123456789012345678901234567890123456789012345678901234567890123456789
First:ALB Last:EIN IQ:165
You don’t seem to specify the tool you want to use (or I didn’t get it) but this may give you some clues: