The data and the search pattern work correctly in RegExRX so the must be a problem with this last bit of code. All the data looks correct in the debugger in Wordlist but when I step through it it still allows more than 4 letter words that contain a foreign character??
Actually a closer look and a few more runs RegExRX doesnât show the correct data and does match my code results⊠look below. Why does the code and RegExRX not search for whole words \b?
Iâve been burnt before by the ânot so obvious stuffâ like mixed line endings in a file and since the search looked like it was checking âper lineâ, I thought it worth mentioning.
In this case it sounds like Kem has the real answer, hopefully.
That specific example works but does that mean the rest of the general searches I was using are also restricted in Regex to single byte?
.*
AB.{3,5}
.*ly
âŠ
.{3,6}
Thanks looks like some rethinking if I want to add extra languages.
Last question before the rethink
How would I rewrite a search for words starting with AB with 3-5 letters
^\pL\bAB\w{1,3}\b
* = zero or more, e.g., \pL* + = one or more, e.g., \pL+ {x} = exactly x, e.g., \pL{2} {x,y} = min x, max y, e.g., \pL{2,4} {x,} = min x to unlimited, e.g., \pL{3,}