I have set the pattern Part\s[V|IV|III|II|I][:]? the problem is that when it comes across Part III, for example, then it acknowledges Part I as the match and cuts out the other two II‘s. Is there no way to make the III in the pattern have a higher priority so it’s included in what’s found?
I have set the pattern Part\s[V|IV|III|II|I][:]? the problem is that when it comes across
Share
The issue you have is that a character class (the [ and ]) only matches a single character. So it matches any one of the characters within it, in this case you’ve simply restated I quite a few times. What you need is to or multiple strings rather than characters. I.e.
Note the round brackets instead of square ones.