Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?xsm) (.+) # copy-past replacement to
/
gm

Description

This two-step find-replace routine is intended create string vars from text like this: original text: This is A block of text I want to move To my code As a variable Uncluttered

Submitted by anonymous - 6 years ago