View Single Post
Old 08-06-2020, 07:35 AM   #1
africalass
Connoisseur
africalass began at the beginning.
 
Posts: 54
Karma: 10
Join Date: Dec 2010
Location: Various - sometimes UK, sometimes South Africa, sometimes other countries in Europe / Africa
Device: Windows Laptop; Kindle Keyboard; Hudl2 (Android), iPhone
Help with regex for adding in a hyphen

Hi all!

I haven't used regex in some years, so I wondered if someone could possibly help with a simple expression? I'd be grateful if so, but no problem if not.

I would like to add in some punctuation - either a colon and space, or a space hyphen space, after the first word in the title. Then I want to do the same thing for other books but after the second word. I don't need to bring in anything from any other field, and I don't have any existing punctuation in any of the titles. I will select the books manually as to whether it's after the first / second words.

Thanks for any assistance.
africalass is offline   Reply With Quote