\bnñÑηИnNg{2}(?:[e3ɛёèéêëēĕėęě] [\u0065\u0435\u0454\u0395\u04BB\u04BD])r[s$5zZ]\b can…
- User
\bnñÑηИnNg{2}(?:[e3ɛёèéêëēĕėęě]|[\u0065\u0435\u0454\u0395\u04BB\u04BD])r[s$5zZ]\b
can you tell me what this regex pattern can detect? what combination of letters?
- Assistant
Sure! This regular expression pattern can detect certain combinations of letters and symbols, including some accented characters, resembling the word "Engineer" in various stylized forms. Here’s a breakdown of the pattern:
-
\b: Word boundary anchor, ensuring that the pattern matches at the start or end of a word. -
nñÑηИnNg{2}: The first character can be any ofn,ñ,Ñ,η,И,nN(independent of case), orng. Note that the{2}applies only to theg, ensuring two consecutive characters. However, stands alone, so it just means two characters in a row.
-
- User
between n and g there should be an 'i' detection
- Assistant
Got it! If you need to include the letter
ibetweennandg, you can modify the regular expression accordingly. Here is the revised pattern:code\b[nñÑηИnN]i[g{2}](?:[e3ɛёèéêëēĕėęě]|[\u0065\u0435\u0454\u0395\u04BB\u04BD])r[s$5zZ]\bHere’s the breakdown of the updated pattern:
-
\b: Word boundary anchor, ensuring that the pattern matches at the start or end of a word. -
[nñÑηИnN]: Matches any one of the charactersn,ñ,Ñ,η,И, , or .
-