How to add \t before and after the number using regex

Post Reply
Valuex
Posts: 2
Joined: 07.01.2023 08:57

How to add \t before and after the number using regex

Post by Valuex »

I get the following text snippet

Code: Select all

a12b
c23d
I would like to add tab before and after the digital number, like

Code: Select all

a  12  b
c  23  d
I've tried to find

Code: Select all

(\d{2})
, and replace it with

Code: Select all

 \t\1\t
, but it doesn't work.
Any comment on how to make this kind of replacement work? Thanks.
miro.matas
Posts: 67
Joined: 26.08.2013 06:16

Post by miro.matas »

HTH
Attachments
Untitled.png
Valuex
Posts: 2
Joined: 07.01.2023 08:57

Post by Valuex »

It works! Thank you very much. @miro. matas
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Post Reply