Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support Capture groups like sd #44

Open
xaljer opened this issue Jan 14, 2021 · 2 comments
Open

Feature request: support Capture groups like sd #44

xaljer opened this issue Jan 14, 2021 · 2 comments

Comments

@xaljer
Copy link

xaljer commented Jan 14, 2021

No description provided.

@Larpon
Copy link

Larpon commented Jan 4, 2022

fd | sad 'pub fn (.*)C\.SDL_(.*)' 'pub fn $1$2' works, just like sd?

@ray-x
Copy link

ray-x commented Jan 12, 2023

some cases failed. e.g. replace require -> REQuire
fd | sad '(req)uire' '$1UIRE'
preview:
require ->

fd | sad '(req)uire' '($1)UIRE'
preview:
require -> (req)UIRE

fd | sad '(req)(uire)' '($1)UIRE'
preview:
require -> (req)UIRE

fd | sad '(req)(uire)' 'REQ$1UIRE'
preview:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants