I’ve been a big fan of RegEx since I first started using it, but I’ve run into a snag. I’ve never had to search for a multiline section of text before, and I can’t seem to get it to work.
Here’s what I’m trying to search for. Some of the individual lines are not unique in this document, but together in this order they are unique, so that’s how I want to search for it.
item: Custom Script Item
Filename=Remove MSI.wse
Variable Name1=TEST
Variable Value1=Insert GUID Here
end
I’ve tried using Xojo’s line continuation, but that did work. Here’s what I tried.
rg6.SearchPattern = "\bitem: Custom Script Item "_
+ "Filename=Remove MSI.wse "_
+ "Variable Name1=TEST "_
+ "Variable Value1=Insert GUID Here "_
+ "end\b"
Any suggestions would be most appreciated!