by GMA » Wed Nov 12, 2008 3:39 am
Hi, surrvar:
You can use the following expresions in the "RegEx (1)" field (I'll put a few examples of each so you can see how it works):
To delete the fifth character from the end:
MATCH: (.*)(.)(.{4})$
REPLACE: \1\3
To delete the fourth character from the end:
MATCH: (.*)(.)(.{3})$
REPLACE: \1\3
To delete the fifth and fourth characters from the end:
MATCH: (.*)(..)(.{3})$
REPLACE: \1\3
To delete the sixth, fifth and fourth characters from the end:
MATCH: (.*)(...)(.{3})$
REPLACE: \1\3
To insert something at position 4 from the end:
MATCH: (.*)(.{3})$
REPLACE: \1InsertHere\2
To insert something at position 5 from the end:
MATCH: (.*)(.{4})$
REPLACE: \1InsertHere\2
In the last two examples, of course, you have to replace "InsertHere" with whatever it is you need to insert.
Best regards,
Gabriel.