Kimono Labs uses this for their basic regex expression: /^()(.*?)()$/
.
The documentation claims the first bracket holds the text before the beginning of the captured expression, the middle bracket holds the captured expression, and the end bracket holds the text preceding the captured expression.
I have the url of a number of images I want to capture with junk at the end of them like this: https://awebsite/witha/picture.jpg?w=800
which I want to pair back to get rid this: ?w=800
Nothing I do to the regex seems to make a difference, I can't find much discussion of the kimonolabs regex online, and I'd love to be able to make it work well.