Regular Expressions 101

Community Patterns

match start of string that does not start with 'http' or is empty

0

Regular Expression
PCRE (PHP <7.3)

/
^(?!http|$)
/
gm

Description

Used this to help with the migration of urls that did not begin with with an http or https protocol.

Submitted by anonymous - 3 years ago