Regex replace has no effect


#1

On atom 1.32.2, in an open tab, “Finding with Options: Regex, Case Sensitive”, I want to replace

\.([[:alpha:]]+)Request

with

\.Request_$1

Regex search results are highlighted correctly, but when I press “Replace” or “Replace All”, nothing happens. I’ve also tried to use \1 instead of $1, no effect at all.

What’s going wrong?


#2

There is a spurious backslash in the replacement string, sorry. I can’t seem to edit the post.

Anyway, it works if you use perl-style \w instead of [[:alpha:]]. Looks like some kind of bug.