Regular Expressions 101

Community Patterns

Regex to Match if a line ends with particular characters

0

Regular Expression
PCRE (PHP <7.3)

/
^(?(?=.*abc$)($^)|(.*))$
/
gm

Description

no description available

Submitted by Siddharth Gupta - 6 years ago