How to find by
hello Bartłomiej Żółć match me!
hello Bartlomiej Zolc match me too!
It may be prohibitively hard to normalize the thing you match against, so I recommend changing the regex.
I don't know if Ruby supports the
[=o=] (which matches
o and all its accented versions) POSIX bracket expression syntax, but there is also another way.
Replace every letter with an alternative accented form with a character class. For example: