Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

Description

01-sitepoint-com-learn-regex-olmatro

https://www.sitepoint.com/learn-regex/

SOM: we’ll look at the simplest form of regular expression we can build. Input the following:

regex input field: cat test string: rat bat cat sat fat cats eat tat cat mat CAT

EOM: Starting and Ending Patterns You may have noticed that some positive matches are a result of partial matching.

Submitted by https://www.sitepoint.com/learn-regex/ - 3 years ago