I want to match anything until it gets to the string
jpg,
or
jpg",
Right now I am using this
(.*?)jpg",
but then this doesn’t match the cases where it is
(.*?)jpg,
Any help is appreciated. Thanks.
I want to match anything until it gets to the string
jpg,
or
jpg",
Right now I am using this
(.*?)jpg",
but then this doesn’t match the cases where it is
(.*?)jpg,
Any help is appreciated. Thanks.
Which language? PHP? Javascript?
Php
Can you post the complete regex you are working on here?
Try this:
(.*?)[jpg | jpg",]
You will need to ESCape the double-quotes if your RegExp is enclosed in quotes.
That is just one of many ways to approach the problem.
thanks