Praise

Tool for Search and Replace across multiple files.
ajaxStardust
Posts: 2
Joined: Wed Sep 21, 2022 11:50 pm

Praise

Post by ajaxStardust »

Hi there. Love your app. I'm including it in my "essential web development tools" post. :)

check it out! you're the first one there!
ajaxStardust
Posts: 2
Joined: Wed Sep 21, 2022 11:50 pm

Re: Praise

Post by ajaxStardust »

Replacing numerical values in regex.

Is there a way to used named capture expressions in the replacement expression? I've never encountered this issue before with TextCrawler. I find it hard to believe that I've not had a similar circumstance in the past that I've not noticed it before. Perhaps it has something to do specific to the expression I have here. I made a brief screen recording to demonstrate. It's just a file shared at my Google drive showing non-numeric vs 10.0.0.1 IP replacement expressions.

How do we best handle this with a replacement expression in TextCrawler?
User avatar
DigitalVolcano
Site Admin
Posts: 1804
Joined: Thu Jun 09, 2011 10:04 am

Re: Praise

Post by DigitalVolcano »

I know this is a late reponse, but you probably need to write your capture groups in the replace expression like ${1} - otherwise they get mixed up with the numeric content.

e.g.

Code: Select all

${0}50.30.20.10${1}
https://learn.microsoft.com/en-us/dotne ... ered-group
Post Reply