[issue25200] bug on re.search using the char ,-:

2015-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is how regular expressions work. https://docs.python.org/3/library/re.html#regular-expression-syntax Ranges of characters can be indicated by giving two characters and separating them by a '-', for example [a-z] will match any lowercase ASCII letter, [0

[issue25200] bug on re.search using the char ,-:

2015-09-20 Thread Diego Palharini
New submission from Diego Palharini: Using the packet re for regular expressions I found a strange behavior with the following command: re.search("[,-:]","89") it returns that one of those chars exists into the string "89" or whatever number you may use. -- components: IDLE messages