I was using [\S]+ to match names but that matches e.g. .I, then replaces it in the comments, which is bad. I switched to [\w]+ but that matches not unicode chars.
Javascript native regex unicode support is bad. I haven't figured out the simplest way to do this.
http://xregexp.com/plugins/ is an option but I want to find out if there's a simpler solution. Ideally a simple Not Punctuation range class like [^\u0000-\uFFFF].
I don't like releasing w/o i18n support but there's nothing for it.
I was using
[\S]+to match names but that matches e.g..I, then replaces it in the comments, which is bad. I switched to[\w]+but that matches not unicode chars.Javascript native regex unicode support is bad. I haven't figured out the simplest way to do this.
http://xregexp.com/plugins/ is an option but I want to find out if there's a simpler solution. Ideally a simple
Not Punctuationrange class like [^\u0000-\uFFFF].I don't like releasing w/o i18n support but there's nothing for it.