View Single Post
Old 03-28-2021, 08:04 AM   #2
The_book
Zealot
The_book began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Aug 2019
Device: none
Quote:
Originally Posted by 1v4n0 View Post
Hello, is there a way to replace a character or a string, repeated continuously N times, with the number N?
Say, replace "AA" with "2", "AAA" with "3" and so on, in just one regular expression?


Thank you.
calibre book-edit regex function replace. using python to do so.

Hope someone develops a similar plug-in, or this feature will be also added to Sigil
The_book is offline   Reply With Quote