![](https://cdn.userecho.com/characters/97.png?1)
0
Завершен
Extend View.find_all to accept non-regex search strings
View.find_all can take a bunch of different flags, but none of them say "don't treat the search string as a regular expression". It wouldn't matter except re.escape is an awful function that's worse than useless (i.e., it escapes < to \<, which changes it from a literal match to a "beginning of word" match).
Thanks!
Thanks!
Ответ
![](https://cdn.userecho.com/characters/74.png?1)
0
Ответ
Завершен
Jon Skinner 14 лет назад
the flag sublime.LITERAL should do this
![](https://cdn.userecho.com/characters/97.png?1)
Oh no way! I thought all the OP_* flags were for View.find_all. Oops!
Thanks! Makes my life easy. :)
Thanks! Makes my life easy. :)
Сервис поддержки клиентов работает на платформе UserEcho