var fDesc=new Array(); fDesc[0] = "EasyPatterns" are a nifty new way to describe patterns of text, in a way that is easy to understand and use, and with plenty of power under the hood. While one user has described them as 'regular expressions for dummies', EasyPatterns actually help you to make use of the underlying power of the perl-style regular expressions, without having to understand them (which is a BIG plus!).
EasyPatterns make parsing a US phone number as easy as
:
[ PhoneNumber ]
or if you prefer the long way:
[ optional punctuation, 3 digits, punctuation, 3 digits,
punctuation, 4 digits ]
(The equivalent perl pattern is
[[:punct:]]*[[:digit:]]{3}[[:punct:]][[:digit:]]{3}[[:punct:]][[:digit:]]{4}
)"; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }