I’m looking for one regular expression that could match a string for three specific cases in a xml file:
- : Double-quotes surrounding a string.
- : A string surrounded by the characters greater than and Less Than.
- : A string surrounded by the characters ; and &.
Example:
- “MyString” – Valid match
- >MyString< – Valid match
- ;MyString& – Valid match
Other possible combinations are invalid match.
Try this:
("MyString")|(>MyString<)|(;MyString&)