Skip to content
harry-suryapambagya

REGEX

A personal scratchpad for regular expressions, including a pattern for matching IPv4 addresses and notes for future examples.

updated 1 min read

Regular expression. Thanks to Stephen Cole Kleene who introduced this concepts.

I'm not capable enough with regex, I still working on it. Hahaha.

I will post here for such common expression.

^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
  • etc.
  • etc.