in reply to Problem matching a backslash in a regular expression

Welcome to the Monastery. For being your first post, it's better than what other people have done as their first posts (or even the fourth or fifth, for some people).

Showing us a little bit of your input data is good (and putting that data sample inside "<code>" tags is very good).

Showing us the code you've tried would be even better (especially if you put that inside "<code>" tags also).

For example, it could be that you've only read the first line of input (which happens to end with a backslash). Are you sure you are reading the following lines as well?

  • Comment on Re: Problem matching a backslash in a regular expression