Reputation: 181
I'm trying to create a regex that can find all words that end with "Ctrl" and get only the beginning of the word. So for "QuestionCtrl" I would only want to get "Question".
So far I've boiled it down to something like this: \b(\w*(Ctrl)\w*)\b
Upvotes: 0
Views: 29