-
My own Regex 1001 – and the list must go on!
Fine phone numbers in (xxx)xxx-xxxx format and replace with +1(xxx)xxx-xxxx. In markets out of the US, we always need the phone numbers to start with their country code. Regex: (\(\d{3}\))(\d{3})(-)(\d{4}) Match: +1$1$2$3$4 In English, money is written into the format “xxx,xxx (NUMBER) + $ (CURRENCY SIGN)“. But in Chinese, the currency symbol goes first. So…