What version of ripgrep are you using?
ripgrep 13.0.0
How did you install ripgrep?
Github binary release
What operating system are you using ripgrep on?
Windows 10 Pro 21H2
Describe your bug.
Replace group strange behavior if not separated from text
What are the steps to reproduce the behavior?
>echo link="https:\\site.com" | rg "(.*)(https.*?)(\")" -or "$1localhost$3"
>"
however
>echo link="https:\\site.com" | rg "(.*)(https.*?)(\")" -or "$1 localhost$3"
>link=" localhost"
Workaround for now is changing regex to insert "" between $1 and text
What is the expected behavior?
>echo link="https:\\site.com" | rg "(.*)(https.*?)(\")" -or "$1localhost$3"
>link="localhost"
What version of ripgrep are you using?
ripgrep 13.0.0
How did you install ripgrep?
Github binary release
What operating system are you using ripgrep on?
Windows 10 Pro 21H2
Describe your bug.
Replace group strange behavior if not separated from text
What are the steps to reproduce the behavior?
however
Workaround for now is changing regex to insert "" between $1 and text
What is the expected behavior?