Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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");
- resultString = Regex.Replace(resultString, @"\s+", " ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement