1. load string_copy.e
2. bind string-copy and string-paste to menu or hotkey
This macro will help you add/remove escape sequences in C/Java or XML.
For example: string-copy a C-string:
(?P<nat_dst_ip>\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})
You will got:
(?P<nat_dst_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
The escape sequences were translated.
string-paste the text to a XML file, the text will be escaped for XML:
(?P<nat_dst_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})
Have fun!