View Single Post
Old 08-06-2020, 11:03 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@dunhill: I did have a quick look at it when you posted. I could see some problems and hoped someone else would come along

The following will handle the case you mentioned:

Code:
(?P<title>[^\[\(]+)\s*(\[.*\]|\(.*\))?
But, it doesn't take into account the other metadata attributes. How to add the other attributes is the problem. Does the second part get added after the title in the regex? Or somewhere else?

I think I like @theducks suggestion. The above regex should work with the bulk search&replace.
davidfor is offline   Reply With Quote