Ahem:
string str1 = "<div class=" + str + ">" + "(101) 1010-1234" + "</div>";
string str2 = "<div class=\"phone-number\"><\\(\\d{3}\\) \\d{3}\\-\\d{4}/div>";
Look closely:
\\d{3}\\-\\d{4}
Is three digits, followed by a hyphen, followed by four digits.
1010-1234
Is four digits, followed by a hyphen, followed by four digits.
Get a copy of
Expresso [
^] - it's free, and it examines and generates Regular expressions.