Turkic I and re

M

MRAB

I'm interested to know the opinion of Turkish users of the re or regex
module.

When the re module performs a case-insensitive match, it matches 'I'
with 'i'. In Turkish, however, it should match 'I' with 'ı' and 'İ'
with 'i'.

The regex module at http://pypi.python.org/pypi/regex currently uses a
compromise, where it matches 'I' with 'i' and also 'I' with 'ı' and 'İ'
with 'i'.

I was wondering if it would be preferable to have a TURKIC flag instead
("(?T)" or "(?T:...)" in the pattern).

Without the Turkic flag it would match 'I' with 'i'; with Turkic flag
it would match 'I' with 'ı' and 'İ' with 'i'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top