What steps will reproduce the problem?
>>> import regex
>>> regex.escape(r"foo!?")
'foo\\!\\?'
>>> regex.escape(r"foo!?", special_only=1)
'\\f\\o\\o!?'
What is the expected output? What do you see instead?
according to document,
>>> regex.escape(r"foo!?", special_only=1)
should be
'foo!\\?'
What version of the product are you using? On what operating system?
regex-2013_10_22-py2.7-win32
Please provide any additional information below.
Original issue reported on code.google.com by Lyricconch on 24 Oct 2013 at 4:53
Original issue reported on code.google.com by
Lyricconch
on 24 Oct 2013 at 4:53