I am having to write few patterns which will be used for matching purpose through Regex upon user input:
string pattern = "^.*overview\ of\ sales.*customer\ information.*$";
string input = "overview of sales with customer information";
Is there a way(s) to remove the word order in Regex? So
string pattern = "^.*overview\ of\ sales.*customer\ information.*$";
will also match:
string input = "customer information with overview of sales";
This can probably be done by writing every pattern in reverse order but as number of patterns are quite few and will grow with time and number of *. This tends to be tedious way of doing it so please guide on this matter.