2

Is it possible to customize the behavior of regex metacharacters for character classes like that?

(In Sublime, or more generally.)

1
  • Sublime uses Boost's Perl regex syntax, and you cannot change that implementation. Maybe you could write a plugin that does something more fancy in Python.
    – slhck
    Nov 9, 2013 at 23:31

1 Answer 1

0

if @slhck is right, and Sublime is using Boot's pcre syntax, you should be able to use \p{L} in place of \w and that should give you what you need.

Ref: http://www.boost.org/doc/libs/1_47_0/libs/regex/doc/html/boost_regex/syntax/character_classes/optional_char_class_names.html

2
  • Hm. Nope, x\p{L}x doesn't match the string xüx in Sublime.
    – Owen_AR
    Nov 10, 2013 at 3:22
  • (It does match xax.)
    – Owen_AR
    Nov 10, 2013 at 3:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .