Regex question

Pseudocyclic

Well-known member
I have a string variable, the contents of which follow these examples:

[eBay<ebay@ebay.co.uk]

[text1<text2@text3]

I want to determine if the text before the < (text1) occurs or does not occur within the text after the @ (text3).

Not case sensitive; there will never be any spaces anywhere in the string; text2 is ignored.

For example:

[example<example@example.com] = True

[example<anything@example.com] = True

[example<anything@anything.example.com] = True

[example<anything@example.anything.com] = True

[example<example@anything.com] = False

[example<anything@anything.com] = False

Any suggestions?

TIA
 
Top