Replace text with regex (unexpected result)

dc9f79b7
Posts: 9
Joined: 22.11.2021 13:14

Post by dc9f79b7 »

Search option:
  • Consider escape sequences (default mode)
  • Plain text (optional mode)
doesn't make sense either?
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Post by main Alexey »

It does make sense. Maybe I will add an option or a Replace dialog toggle-btn.
dc9f79b7
Posts: 9
Joined: 22.11.2021 13:14

Post by dc9f79b7 »

Any option implementation:
Search: {regex_mode}
Replace: {escape_mode} or {plain_text}

would be very helpful in my case. If it will be added, then I will be very grateful.
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Post by main Alexey »

I just added

+ add: dialog Replace has new option, visible only in the "..." menu: "RegEx substitute for 'Replace with'"

Beta is here
http://uvviewsoft.com/c/
dc9f79b7
Posts: 9
Joined: 22.11.2021 13:14

Post by dc9f79b7 »

Text: 0 1 2 3 4 5 6 7 8 9
Search: \d
Replace: \d

RegEx substitute for 'Replace with = off
Replace result: \d \d \d \d \d \d \d \d \d \d

RegEx substitute for 'Replace with = on
Replace result: d d d d d d d d d d

Works! Thx you very much!
The state of the option should not be swapped?
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Post by main Alexey »

It should not be swapped.
dc9f79b7
Posts: 9
Joined: 22.11.2021 13:14

Post by dc9f79b7 »

Ok.
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Post by main Alexey »

(As 'thank you', I welcome blog post, or a youtube video about Cud, not short.)
dc9f79b7
Posts: 9
Joined: 22.11.2021 13:14

Post by dc9f79b7 »

Unfortunately I don't have a blog or youtube channel, but I have purchased "Universal Viewer Pro".
main Alexey
Posts: 2708
Joined: 25.08.2021 18:15

Post by main Alexey »

Thanks for this, too!
Post Reply