? IIF(LEN(ALLTRIM(SUBSTR(x,RAT('-',x)-3)))>0,'y','n')>I need to determine if any combination of numbers formatted like this: 999-9999 is within a string. The string may have (999)999-9999 or 999-999-9999 or anything else, but it will always have 999-9999 (123-1234, 987-321-9382, etc). Any way to do that? Perhaps the string is:
>Suite 100 123-1234 && .t. because it contains 123-1234 >Bldg J (910)222-2222 && .t. because it contains 222-2222 >