Octal String Regular Expression

Category: Strings

A regular expression to match and validate an Octal String.

/^([0-7])*$/

Matches

  • 162145147145170
  • 160141
  • 143157155

Non-matches:

  • 12345678
  • 97654321
  • abcdefg
Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.