Loading ...
Sorry, an error occurred while loading the content.

4843Re: [NH] RegExp - Add Mask to Numbers

Expand Messages
  • Ben B
    Oct 6, 2004
    • 0 Attachment
      On Wednesday, Oct 06, 2004
      acantley5 wrote regarding "RegExp - Add Mask to Numbers";

      > I have lists of phone numbers and want to change from 1234567890 to
      > 123-456-7890 format; each number is on a separate line. Can anyone
      > help with the appropriate search and replace strings in RegExp?

      This should work:

      Find what = {\d\d\d}{\d\d\d}{\d\d\d\d}
      Replace with = \1-\2-\3

      HTH
      Ben
    • Show all 6 messages in this topic