Copy link to clipboard
Copied
In a column of a table with 14digits product codes I need to have a paragraph style of 2digits bold, 2 digits plain, 2digits bold and so on... for better readability. Could someone give me a Grep code that works? Thank you
If you mean, simplistically, something like this:
12345678901234
… so, do simply:
((\d{2})|\G)\K(?2)(?=(?2))
(^/) The Jedi
This works fine. It slipped my mind.
It works also with repeat. Thank you!
Copy link to clipboard
Copied
Or you could use nested character styles...
Copy link to clipboard
Copied
This works fine. It slipped my mind.
It works also with repeat. Thank you!
Copy link to clipboard
Copied
If you mean, simplistically, something like this:
12345678901234
… so, do simply:
((\d{2})|\G)\K(?2)(?=(?2))
(^/) The Jedi
Copy link to clipboard
Copied
This works fine. Thank you!
Could you please explain the coding in order to learn something out of it?
Copy link to clipboard
Copied
+1.