Hi Marc, On 07.03.2011 15:31, Marc Grober wrote: I was just working with regex in LO 3.3.1 (osx) and was unsuccessful with with placeholders (the placeholder was placed in text). I found two different bits of documentation (internal and wiki) that were not totally consistent and examples did not work. Ran out of time on underlying project so did not resolve what issue was. This was on my "list" to address but have yet to get to it.... Can you confirm both styles of placeholders work and offer example that worked for you? I hope not to have caused some confusion, because I shouldn't have called "&" a "place holder". Is is a "(back-)reference" to the search result, but [:digit:] is a place holder. Here is a somewhat artificial example using both. The original text: The cat never is blue with gray. This car almost is green like a leaf. A dog still is black same as coal. Search string (There is a blank after "is"): ([:alpha:]*[:space:])([:alpha:]*[:space:])([:alpha:]*[:space:])is ([:alpha:]*) Replace: $1little $4 $2was $3 Text after replace: The little blue cat was never with gray. This little green car was almost like a leaf. A little black dog was still same as coal. I hope it can give some ideas. Karl-Heinz -- Unsubscribe instructions: E-mail to users+help@libreoffice.org List archive: http://listarchives.libreoffice.org/www/users/ *** All posts to this list are publicly archived for eternity ***