I have a file that contains consecutive -
example: somefields - anything - anything - ... - anything ABC DEF 23232 - anything
How do i extract the content of the delimited field between the 7 - "dash" and the 8 - "dash"?
PS: I don't want to use transform.conf with DELIM="-", i need to use regular expression for this field only the one between the dash number 7 and the dash number 8.
(?:[^-]*\-){7}(?<yourfield>[^-]*)
should do it. Verify at regexpal.com or similar (remove ?<yourfield>
when you do this).