A
Arthur Dent
Hello all, i am trying to write a regex to find escaped characters in a
string of the form "\x009" ...
to parse strings that look something like this... "My dog jumps\x013\x010"
I had that working fine, with the regex "\\[x]\d{3}"
Now i wanted to extend it so that it would NOT count them when the leading
slash is itself, preceeded by a slash (escaped).
so this sentence would NOT match... "My dog jumps\\x013\\x010"
This is where i ran into problems.
I tried doing this... [^\\]?\\[x]\d{3} but the problem is then that it
includes the preceeding, non-slash character in any matches, which i dont
want.So in this, "My dog jumps\x013\x010" the matches returned would be
"s\x013" and "\x010". I do not want that "s" on the front, but i need to
make sure the slash isnt doubled (escaped).
Any help with my regex? Thanks in advance,
- Arthur.
string of the form "\x009" ...
to parse strings that look something like this... "My dog jumps\x013\x010"
I had that working fine, with the regex "\\[x]\d{3}"
Now i wanted to extend it so that it would NOT count them when the leading
slash is itself, preceeded by a slash (escaped).
so this sentence would NOT match... "My dog jumps\\x013\\x010"
This is where i ran into problems.
I tried doing this... [^\\]?\\[x]\d{3} but the problem is then that it
includes the preceeding, non-slash character in any matches, which i dont
want.So in this, "My dog jumps\x013\x010" the matches returned would be
"s\x013" and "\x010". I do not want that "s" on the front, but i need to
make sure the slash isnt doubled (escaped).
Any help with my regex? Thanks in advance,
- Arthur.