You can use the following regular expression to match the terms "net", "gross", and "super" in any order:
main.cs69 chars2 lines
This regular expression uses positive lookahead assertions to ensure that each of the three terms appears in the input string. The .*
before and after the lookahead assertions matches any characters before or after the terms. The \b
ensures that the terms are matched as whole words.
Here's an example of using this regular expression in C#:
main.cs217 chars5 lines
gistlibby LogSnag