How can I detect phone number that is spelled out?


#1

Hello,

How can I detect phone number that is spelled out, like “212-POISONS”, as POISONS should be changed to number in our translation?

Thanks.


#2

Do you have any common format for that, like a constant number of digits, followed by a dash, followed by a constant number of letters?


#3

You can try with the following:

  • Source: <(([0-9]+)-)+[A-Z\-]+>
  • Regular Expressions: On
  • Powersearch: Off

This should find segments that contain for example 1-800-CALL-ME-NOW or 123-ABDCE.

Additionally, if you wish to find segments that do not have the spelled out phone numbers changed to something else in target, you can use:

  • Source: "(<(([0-9]+)-)+[A-Z\-]+>)=1"
  • Target: "@1"
  • Regular Expressions: On
  • Powersearch: On

Note: The above double quotes in source and target are needed because it is a Powersearch expression.