Regular Expressions 101

Community Patterns

1...45678...400

Find a word after an immediate pattern of characters

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 - 2 years ago (Last modified 2 years ago)