I'm trying to use regular expressions for the first time and having some trouble, maybe with my syntax.
Here's a sample string contained in my source file I'd like to find:
Type = Creature / Animal / Elephant
"Type = " is static, however the three values between the forward slashes can change.
The search string I'm using is:
\bType = .*/.*/.*\b
My search string works fine, however my source file is HTML and some of the strings have HTML code embedded:
Type = Creature / Animal / Elephant
Type = Creature / Animal / Elephant<br />
Type = Creature / Animal / Elephant</span></span></strong>
Stuff like that (it not very good HTML, maybe copy-pasted from Microsoft Word?)
For my search expression, this is one of the results:
Type = Creature / Many Fish / Tuna </span></span></li
I don't understand why the result isn't stopping at "&" or "<" after Tuna.
Any thoughts on how my expression has to be changed to handle these variants?
I'm using working in VBA in Microsoft Excel, using the Microsoft VBScript Regular Expressions 5.5 library. Thank you.