Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Feb 2003
    Location
    near Blairgowrie, Perthshire, Scotland
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    finding numbers and commas (any)

    I know how to find a number followed by a comma but how in '12, Rillington Place' as part of a database record do you replace any number plus a comma by just the number, so that in the CSV output you get '12 Rillington Place'? I suspect a regex is the answer but the Replace box doesn't take kindly to them. Any help would be appreciated. I want a simple answer which can be used by someone else. I think I can do it programmatically.

    Rex Last

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: finding numbers and commas (any)

    Click More in the Find/Replace dialog and tick "Use wildcards".
    Enter <code>([0-9]),</code> in the "Find what" box, and <code>1</code> in the "Replace with" box.
    [0-9] means any digit and the ( ) around it let you refer to the digit as 1 in the "Replace with" box.
    (You could have multiple expressions enclosed in parentheses, and refer to them as 1, 2 etc.)

  3. #3
    Star Lounger
    Join Date
    Feb 2003
    Location
    near Blairgowrie, Perthshire, Scotland
    Posts
    72
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: finding numbers and commas (any)

    Many thanks. Should have known that but was having a senior moment!

    Rex Last

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •