in reply to Re: Match a string that can contain a carriage return in a random position.
in thread Match a string that can contain a carriage return in a random position.
Not a bad suggestion, BUT:
I would suggest rather to first normalize the file, i.e. remove the newlines at the 80th positions and concatenating the various parts of each DN together so as to have one line per DN.
Then you can use the regex /cn=(.+),ou=(.+),ou=(.+),c=(.+)/
Finally you de-normalize the DN's again by adding -if necessary- newlines at position 80 so as no to break the other tools.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|