View Single Post
Old 11-04-2022, 04:04 PM   #307
killo3967
Enthusiast
killo3967 began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite
Select capture group from Text Search

Hi.

First, thanks for this plugin.

I'm doing a "text search" looking for the "epub revision" text which is inside the book in the possible formats:

ePUB v1.1
ePub v1.1
epub v1.1
ePUB r1.1
ePub r1.1
epub r1.1
EPUB v1.1
EPub v1.1
Epub v1.1
EPUB r1.1
EPub r1.1
Epub r1.1

I use this regular expression:

(e|E)(PUB|pub|Pub)\s(v|r)(\d\.\d)

And works fine.

But the problem is when i want to replace my custom column "#revision" with only the numbers and not all the text. I donīt know who to extract the capture group 4 (\d\.\d) and insert it, instead all the text.

Now i have "ePub r1.3" instead of "1.3"

Could you help me?
killo3967 is offline   Reply With Quote