T
T
Troodi Larson2018-06-27 01:48:34
Regular Expressions
Troodi Larson, 2018-06-27 01:48:34

Regular, how to split into several groups?

(\?|&)([A-z0-9]{1,20})=(.{1,20})(.*?)(&|\?)
?pid={10202}?pid2={10202}
The regular finds thus only the first occurrence
?pid={10202}
How to search for all? I kind of messed around with this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2018-06-27
@troodi

/\?\w+=\{\d+\}/g
https://regex101.com/r/8yw0hp/3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question