Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?<=\=).+?((?=\t)|(?=\n))
/
gm

Description

RegEX: (?<==).+?((?=\t)|(?=\n)) -- positive Lookbehind szuka znaku '=' na poczÄ…tku -- .+? -- zaznacza: . matches any character (except for line terminators) +? matches the previous token between one and unlimited times, as few times as possible, expanding as needed (lazy) -- positive Lookahead szuka znaku <tabulator: \t> | lub | <new_line: \n>

Submitted by Piotr Osada - 4 months ago