Community Patterns

Community Library Entry

1

Regular Expression
Created·2024-06-20 11:53
Updated·2025-04-23 11:27
Flavor·PCRE2 (PHP)

/
(?<=\=).+?((?=\t)|(?=\n))
/
gm
Open regex in editor

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