On Oct 16, 12:02 pm, "Arthur Dent" <hitchhikersguideto-n...@yahoo.com>
wrote:
> Hello all, i am trying to write a regex to find escaped characters in a
> string of the form "\x009" ...
[quoted text clipped - 15 lines]
> Any help with my regex? Thanks in advance,
> - Arthur.
The (?<= ) group will match a prefix, but it won't include it in the
results. With that said I believe your Regex should become:
(?<=[^\\])?\\[x]\d{3}
By the way, I tested this with Expresso, which is a great tool for
Regex.
Thanks,
Seth Rowe
Arthur Dent - 16 Oct 2007 17:43 GMT
Thanks for the great tip - that Expresso tool IS way cool!
Your regex worked fine, too. Though, thanks to Expresso, ;) ...
i was able to pare it down even a little further...
from (?<=[^\\])?\\[x]\d{3}
to (?<![\\])\\[x]\d{3}
Thanks for the great info.... CheerZ!
> On Oct 16, 12:02 pm, "Arthur Dent" <hitchhikersguideto-n...@yahoo.com>
> wrote:
[quoted text clipped - 31 lines]
>
> Seth Rowe