Regular Expressions 101

Community Patterns

align text in columns p1

0

Regular Expression
PCRE (PHP <7.3)

/
(?:^|\t) ( [^\t\n]+ (?=.* (^[ ]{3,})" ) )
/
gxsm

Description

part 1 of two-step replacement routine: before: abc def gh gk n opq

after: 'abc def gh 'gk n opq

Submitted by anonymous - 5 years ago