Regular Expressions 101

Community Patterns

Indonesia Phone Number

0

Regular Expression
ECMAScript (JavaScript)

/
^[062]{1,3}
/
gm

Description

Remove the country code or zero leading for Indonesia phone number

This regex only read numeric, didn't include any symbol like '+'

Submitted by Blackjack100 - 4 years ago