Regular Expressions 101

Community Patterns

sql perf log

1

Regular Expression
PCRE (PHP <7.3)

/
^(.*?)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)(,)([^,]+)$
/
mi

Description

13 fields, 12 comma's from right (all left hand ones need to be ignored as they're part of the sql statements)

Submitted by Sandra - 9 years ago