Open babobski opened 7 years ago
You were likely using different Rx engines. @babobski what engine were you using?
It looks like he's using the find/replace pane, which uses Python's regex engine. That means \1
needs to be used instead of $1
.
Is it feasible to facilitate both $1 and \1 @mitchell-as? I'd say so from a user perspective, but there might be edge cases I can't think of on the spot.
@Naatan Yes I think it's feasible as long as it doesn't choke Python's existing replace syntax. Adding support for $n
would just require some post-processing and perhaps special handling of \$
sequences.
Alright, thanks @mitchell-as .
Short Summary
I wanted to preform a search and replace with regex, and use the group in the replace output. It is only not replacing the $1 but just outputing $1
Steps to Reproduce
Create a file with this content:
In you're find field :
(alpha\(opacity\=[0-9'"]+\))
And in you're replace:~"$1"
Expected results
Actual results
Platform Information
Komodo X.2.3 Windows 10
Workarround
Create a userscript for this action.