Regular Expression to get text between words separated with line break
-
I need to get the text between two words but both the words are in different line using regular expression in vb script.
For Example,
str = “Hello World
Information Address 908 BLVD
Avenue Property Type Occupied”I need “908 BLVD Avenue” using regex.So my regex pattern must be anything between “Address” and “Property Type”. Till now , I could able to find “908 BLVD” using
(?<=Address)(.*)\s
but unable to get text before Property Type in same regex function.Thanks
-
(?s)(?<=Address\x20).*(?=\x20Property\x20Type)