- May 18, 2001
- 24,117
- 2
- 0
I want to Parse a message stream and put it into multiple variables or a compound var.
What I want to do is match a multiple line message if it contains a certain string, regardless of how many newlines the message has in it. The string I am using to make the match is never going to be split across more than one line.
I was hoping that [.\n]* would match any number and combination of characters including newline, but it doesn?t seem to.
Input I want to match on is XML, something like
<Message>
<OtherTag> asddsfj </OtherTag> (repeated a variable number of times)
</Message>
Cheers!
/0
What I want to do is match a multiple line message if it contains a certain string, regardless of how many newlines the message has in it. The string I am using to make the match is never going to be split across more than one line.
I was hoping that [.\n]* would match any number and combination of characters including newline, but it doesn?t seem to.
Input I want to match on is XML, something like
<Message>
<OtherTag> asddsfj </OtherTag> (repeated a variable number of times)
</Message>
Cheers!
/0