Regular Expressions 101

Community Patterns

Match 2 Consecutive Characters

0

Regular Expression
PCRE2 (PHP >=7.3)

Description

Matches two consecutive characters. E.g. Applying match to, 'OOOO P' results in matches of, '~O'.

Submitted by Matthew Hiebing - 2 years ago