Search found 2 matches
- Wed Mar 26, 2025 5:16 pm
- Forum: TextCrawler
- Topic: TC4 Bug: Incorrect "Preview" with PCRE2 + capture group
- Replies: 1
- Views: 23363
Re: TC4 Bug: Incorrect "Preview" with PCRE2 + capture group
I just realized this might not be a bug as "Generate preview for all matches" when checked is properly showing 123123123123 as it's reading the change from 123 -> 123123 (and \1\1 from that regex applied to 123123 -> 123123123123).
- Wed Mar 26, 2025 5:09 pm
- Forum: TextCrawler
- Topic: TC4 Bug: Incorrect "Preview" with PCRE2 + capture group
- Replies: 1
- Views: 23363
TC4 Bug: Incorrect "Preview" with PCRE2 + capture group
Build 4.0.0.1 BETA
Steps to reproduce:
1) Create a text file, "test.txt", with the following content:
The quick brown fox jumped over the 123 lazy dogs.
2) Under Settings > Regular Expression engine:
Engine: PCRE2
3) Under Find & Replace > Regular Expression:
Reg Ex: ([0-9]+)
Replace: \1\1 ...
Steps to reproduce:
1) Create a text file, "test.txt", with the following content:
The quick brown fox jumped over the 123 lazy dogs.
2) Under Settings > Regular Expression engine:
Engine: PCRE2
3) Under Find & Replace > Regular Expression:
Reg Ex: ([0-9]+)
Replace: \1\1 ...