Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=MID).*?(?=\s)
/
g

Description

This is done for finding data that is allocated after a defined pattern of letters.

In this case the example is, after MID, finding the MID number in a raw data string.

Submitted by anonymous - 3 years ago (Last modified 3 years ago)