Regular Expressions 101

Sponsors

Library entries

0
pcre2

First_Tests

first tests
Submitted by anonymous - a year ago
0
pcre2

Validate UUID

Use this regex to validate a UUID
Submitted by @eltonplima - a year ago
0
pcre2

Extract noun chunks

Extract noun chunks in a sentence.
Submitted by anonymous - a year ago
0
pcre2

array() to shorthand []

PHP array() syntax to shorthand
Submitted by anonymous - a year ago
0
pcre2

isNumber

Find that given string is number or not.
Submitted by anonymous - a year ago
0
pcre2

[promtail] pod-controller

matching pod-controller
Submitted by anonymous - a year ago
0
pcre2

Find PHP short open tags

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

URL check

Vote

0

Regular Expression
javascript

/
^(?:tcp|ip|udp|pop|smpt|t?ftp|https?):\/\/(?:[a-zA-Z]+:[a-zA-Z\.=%#\-_&]+@)?(?![\.\-])(?:(?:[a-z-A-Z0-9\-](?!\-{2,})){1,63}\.(?:[a-zA-Z0-9\-](?!\-{2,})){1,63}\.?(?:[a-zA-Z0-9\-](?!\-{2,})){1,63}?\.?(?:[a-zA-Z0-9\-](?!\-{2,})){1,63}?)(?:\:(?:[0-9]{1,4}|[0-6][0-5]{1,2}[0-3][0-5]))?(?:\/|\/(?!\/)(?:[a-zA-Z0-9\-\/](?!\/{2,}))+)?(?:\?(?:(?:[a-zA-Z0-9\-\_\=\&\:\+]|%(?:[A-Z0-9]){2})(?!%{2,}|={2,}|&{2,}|\+{2,}))+)(?:#(?:(?:[a-zA-Z0-9\=\-\_\:\~]|%[A-Z0-9]{2})(?!\={2,}|~{2,}|:{2,}|\-{2,}|\_{2,}))*)?$
/

Description

Loading markdown...
Submitted by javalsai - a year ago