Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


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+help@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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.