Regular Expressions 101

Sponsors

Library entries

1
golang

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - a year ago
0
pcre2

Bangladeshi Phone Number Regex

Bangladeshi Phone Number Regex
Submitted by Siam - a year ago
1
pcre2

Pattern string

Example of test I did do to company.
Submitted by Claudio Santos - a year ago
0
java

Regex to verify a java method

Verifies java methods
Submitted by Marco Galindo - a year ago
0
pcre2

Find PHP short open tags

Find PHP short open tags
Submitted by anonymous - a year ago
0
pcre2

[promtail] pod-controller

matching pod-controller
Submitted by anonymous - a year ago

Simple Phone Number validation

Vote

1

Regular Expression
pcre2

/
^(?![ -])(?!.*[- ]$)(?!.*[- ]{2})[0-9- ]+$
/
gm

Description

Loading markdown...
Submitted by Sowed Castelli - a year ago