Regex and Multiline patterns

DaveW

Active Member
Licensed User
Longtime User
I need to make a pattern that will match (simple) XML structures over multiple lines. I am using:

XMLParse.New2("<" & Element & "\b[^>]*>(.*?)</" & Element & ">",True,True)

This works fine with elements that are on one line but it does not work on multiline elements. I thought that perhaps there was a problem with the Multiline switch but I suspect it has more to do with my Regular expression. (multiline affects the ^ and $ and there are none in my expression)

Is there a Regex expert who can help?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Top