Regular Expressions 101

Community Patterns

Community Library Entry

-3

Regular Expression
PCRE (PHP <7.3)

/
name\s+?z155e4d1dde106c_point_test.+?(?<!meta)data\s*".+?from\s+([^\s]+?)"
/
si

Description

gets a postgis tablename from a mapfile with the given layer name, may not work depending on your mapfile layout

Submitted by warnock - 9 years ago