View Single Post
Old 11-16-2023, 05:41 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,394
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by crnirg View Post
Why does UK appear twice?

Search mode: Regular...
Search field: author
Search for: (.*)
Replace with: UK
Destination field: authors
Mode: Append ti field
check - Split result
check - Case sensitive
-------------------------
author before : Juli Zeh
author after: Juli Zeh & UKUK
I tried your sample on Regex101.com with Python as the regex variant. See the two screen shots attached. The * matches zero or more characters and returns 2 matches while the + matches 1 or more and returns 1 match.
Attached Thumbnails
Click image for larger version

Name:	regex101_01.png
Views:	52
Size:	62.7 KB
ID:	204742   Click image for larger version

Name:	regex101_02.png
Views:	56
Size:	56.5 KB
ID:	204744  

Last edited by DNSB; 11-16-2023 at 05:43 PM.
DNSB is offline   Reply With Quote