Skip to content

Instantly share code, notes, and snippets.

@kodenatan17
Last active November 20, 2022 14:40
Show Gist options
  • Save kodenatan17/4c60a1f647e1183b0f104860b30ee7e4 to your computer and use it in GitHub Desktop.
Save kodenatan17/4c60a1f647e1183b0f104860b30ee7e4 to your computer and use it in GitHub Desktop.
telkomsel.regex = ^(\\+62|\\+0|0|62)8(1[123]|52|53|21|22|23)[0-9]{5,9}$
simpati.regex = ^(\\+62|\\+0|0|62)8(1[123]|2[12])[0-9]{5,9}$
as.regex = ^(\\+62|\\+0|0|62)8(52|53|23)[0-9]{5,9}$
indosat.regex= ^(\\+62815|0815|62815|\\+0815|\\+62816|0816|62816|\\+0816|\\+62858|0858|62858|\\+0814|\\+62814|0814|62814|\\+0814)[0-9]{5,9}$
im3.regex = ^(\\+62855|0855|62855|\\+0855|\\+62856|0856|62856|\\+0856|\\+62857|0857|62857|\\+0857)[0-9]{5,9}$
xl.regex = ^(\\+62817|0817|62817|\\+0817|\\+62818|0818|62818|\\+0818|\\+62819|0819|62819|\\+0819|\\+62859|0859|62859|\\+0859|\\+0878|\\+62878|0878|62878|\\+0877|\\+62877|0877|62877)[0-9]{5,9}$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment