Skip to content

Instantly share code, notes, and snippets.

@Toxiapo
Created January 17, 2019 18:57
Show Gist options
  • Save Toxiapo/040eef940e2fccfc04efde3a83526fa8 to your computer and use it in GitHub Desktop.
Save Toxiapo/040eef940e2fccfc04efde3a83526fa8 to your computer and use it in GitHub Desktop.
REGEX AND FILTER: validate ardor address
filter_var($string,FILTER_VALIDATE_REGEXP, array( "options" => array("regexp"=>"/^([a-zA-Z0-9]*-[a-zA-Z0-9]*){4}$/")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment