The task I'm trying to accomplish is crawling a list of web pages and see if there are any common misspellings on said pages.
Here's where I stuck.
I'm using this RegEx (\W|^)(therefor|wich|sence)(\W|$) Which finds misspelled words from this string: therefor, therefore, which, wich whichita, presence , sence, sence and ignores words where misspellings are part of another word
Problem is, results (words) are moved to the second capturing group and parser I'm using only shows results from 1st group.
So I can see that certain page has one of the misspellings, but I don't know which one since it's in group 2.
Is there a way to change the order of groups in RegEx?
PS: using something else to find misspelled words is not an option, I need to be able to perform this task with a scraper I use.
Thanks in advance.