Adding "." to Author Names Initials

A swapping-ground for Regular Expression syntax

Adding "." to Author Names Initials

Postby fixit4u » Sun Oct 07, 2012 4:49 pm

I need to clean up Author names
from: AB Jones OR A B Jones

to: A. B. Jones

with variations like

A Jones and ABC Jones and A B C Jones

Any suggestions appreciated
Thanks
fixit4u
 
Posts: 2
Joined: Sat Apr 21, 2012 4:19 pm

Re: Adding "." to Author Names Initials

Postby fixit4u » Sun Oct 07, 2012 7:13 pm

Filling my own request. This stuff is starting to sink in.
Non- Elegant versions, but they work.
obtw...It took a while before I realized that I can save all of the
RegEx entries as separate *.bru files and then they are easily
recalled and used as needed.

These fill the vast majority of the needs.

NFO=====> Add Periods with One Initial w_Space
EXAMPLE=> A Jones - Book Title.epub
RESULT==> A. Jones - Book Title.epub
FIND=====> ^(.) (.+)
REPLACE=> \1. \2


INFO=====> Add Periods with Two Initials w_Spaces
EXAMPLE=> A B Jones - Book Title.epub
RESULT==> A. B. Jones - Book Title.epub
FIND=====> ^(.) (.) (.+)
REPLACE=> \1. \2. \3 Note the .(space)(s)


INFO=====> Add Periods with Two Initials w_Spaces
EXAMPLE=> A B C Jones - Book Title.epub
RESULT==> A. B. C. Jones - Book Title.epub
FIND=====> ^(.) (.) (.+)
REPLACE=> \1. \2. \3. \4 Note the .(space)(s)
fixit4u
 
Posts: 2
Joined: Sat Apr 21, 2012 4:19 pm


Return to Regular Expressions