View Single Post
Old 03-21-2023, 02:32 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,139
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by crnirg View Post
What to say except many thank you - it works right!
If you could only briefly explain a little

Code:

(.+?) \@(.+)

Replace with: \1 or 2


Yes I don't have to read everything about Regex
The ( ) are the captures 1 and 2
.+ is a general wildcard. the ? makes it less greedy

\@ is just the escaped @ (escape eliminates any other meaning)
So Capture pattern #1 matches up to the @ and stops
Capture 2 is all the rest

the \# is what was captured. so you designate which goes where and in the case of part 2, get tossed because you replaced Title with just #2
theducks is offline   Reply With Quote