Regex Find & Replace

NoOp glgxg at sbcglobal.net
Thu Mar 11 00:07:38 UTC 2010


Tried this on the OpenOffice.org users list, but no response yet. So,
I'm hoping someone here is familiar with Regular Expression & can help:


> Sorting through a flat data file (GEDCOM genealogy database file) in
> Writer (3.2 - linux) and I am attempting to find and replace the following:
> 
> lowercase m preceded by a space and followed by uppercase A-Z.
> 
> Example:
>  (space)mAnderson
> replace as
>  (space)Anderson
> 
> I found that I can easily _find_ using:
>  m[A-Z]
> but can't figure out how to replace the 'm' with a space and leave the
> following A-Z letter in place.
> 
> Any suggestions on how I accomplish this?





More information about the ubuntu-users mailing list