Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(\?|\&)([tx_dwtalentsconnectimporter_joblist%5Bfilter%5D%5BfilterIndustry%5D%5B\[0-9\]%5D=]+)\=([^&]+)
/
g

Description

Return all get checkbox parameters.

String: tx_example%5Bfilter%5D%5BfilterIndustry%5D%5B0%5D=2 &tx_example%5Bfilter%5D%5BfilterIndustry%5D%5B1%5D=6&cHash=0bc48e5ae84ndb2705e9297feecd3a84

Will find: tx_example%5Bfilter%5D%5BfilterIndustry%5D%5B0%5D=2 and split this to Total: tx_example%5Bfilter%5D%5BfilterIndustry%5D%5B0%5D=2 1: ? or & 2: tx_example%5Bfilter%5D%5BfilterIndustry%5D%5B0%5D= 3: 2

Submitted by anonymous - 7 years ago