CyberSoft CVDL

CVDL Tutorial

8. Phone Numbers

  • The ~~ operator was designed for matching phone numbers, and is an extension of the case-insensitive string matching ~ operator.
  • ~~ performs case-insensitive string matching while skipping any white space and punctuation characters.
  • White space and punctuation characters are those defined by the C library isspace() and ispunct() functions.

Examples:

  ~~"123-456-7890"

    matches "(123)-456-7890" and "123.456.7890" and
    "1 2 3 - 4 5 6 - 7 8 9 0", etc.

  ~~"800 FREE CAR"

    matches "(800) - F r e e  C a r !!!", etc.

Listen to the audio

Contents | Previous | Next