Quote:
Originally Posted by hobnail
Regex has a count/number thing where you can specify how many times it matches. I've never used it and can't remember how it works off the top of my head but I think it might be something like the following for the letters and periods for 1 to 6 repititions:
But check the usual helpful regex web sites for how to do it.
|
Actually I had thought for the Find
Code:
([A-Z]\.){2,6}
and
([A-Z]\.){2,6}
where there is a trailing space after the first case
That would Find
A.B.C.<space> but I couldn't figure out how to do the Replace (trailing space) since it depends on the number of letters in the acronym, 3 in this case