I need help on the regular expression.
I have a list of files whose name I need to match with a string and do some activities.
The name pattern can be like this below “word1 word2 word3” or “Word1 Word2 Word3” or it can be “word1_word2_word3” or “Word1word2word3” etc.
The names may contain 2 words or more than 2 words and as you can see the first letter of every word can be in uppercase or lowercase and there can be underscore symbol as well.
As these are file names so user can provide underscores or spaces in between the words.