Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
[\n\r\0]*(?=\w)(.*)
/
gim

Description

Take the text from a textarea and surround text delimited with newlines with p-tags

Submitted by Bob M - 9 years ago