Am Mittwoch, 2. Mai 2012, 14:05:21 schrieb Nino Novak: > Hi, > > On Wednesday 02 May 2012, 04:18:20 Gilles wrote: > > I need to search and reformat toll-free numbers in a spreadsheet, but I > > > can't find how to do this in Calc: > Sorry, could you elaborate a bit, what you mean by toll-free numbers? Some > examples? > > > " (\d\d)(\d\d)(\d\d)" > > This regex will find text like " 123456", not numbers (as numbers are > numbers and do not contain blanks)
Sorry, as I'm working with text mostly, I've overseen that \d is not the correct syntax for digits. Pressing Help (or F1) in the search dialog, you'll find a link to the List of Regular Expressions. There you can see, that a digit is represented by [:digit:], not by \d. So you might have to search for " ([:digit:]{2}.){2}[:digit:]{2}" or similar (without the double quotes). Nino -- For unsubscribe instructions e-mail to: users+h...@global.libreoffice.org Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted