Regular Expressions 101

  • PCRE (Legacy)
  • Match
1

Regular Expression

/
^ --start (1?[\-\.\_]?) question mark makes the block or single character before it optional ([0-9]{3}) (-?) ([0-9]{4}) $
/

Description

First Test Regex

Submitted by Anonymous