Advertisement
Guest User

Untitled

a guest
Mar 4th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.26 KB | None | 0 0
  1. resultString = Regex.Replace(subjectString, @"^(0(?:271|322|174|472|371|589|961|960|570|583|226|624|915|531|652|932|662|921|278|243|33|142|661|456|693))(\d{2,3})(\d{2,3})?(\d{2})$", "$1-$2 $3 $4");
  2.         resultString = Regex.Replace(resultString, @"\s+", " ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement