View Single Post
Old 11-06-2019, 09:31 PM   #3
anoukaimee
Enthusiast
anoukaimee began at the beginning.
 
anoukaimee's Avatar
 
Posts: 30
Karma: 10
Join Date: Aug 2017
Location: USA
Device: Kobo Clara, Pixel 6 (Moon Reader/Calibre Companion), Amazon Fire 10
Quote:
Originally Posted by theducks View Post
your search look good
it is your replace
you want to use the CAPTURED VALUE
(\d{2}) is the first capture
(\d{4}) is the second capture

Replace wants to USE those, just flipped

\2 /\1
Thank you for your help! I guess it is the notion of "capturing" that is confusing for me. How do you indicate that a string is what needs to be modified, rather than just "identifying" it? is it the parens as you have it:
(\d{2}) is the first capture
(\d{4}) is the second capture
And if so, what is the syntax to show that those should be inverted?

I ask because I tried plugging in just

(d{2}) (d{4}) for search AND
(d{4}) (d{2}) for test

and it's not changing anything (in the "your test" field, at least).

Really appreciate your help!
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	617
Size:	78.9 KB
ID:	174760  
anoukaimee is offline   Reply With Quote