I am looking for a regular expressions pattern that can detect any string in between [ and ] and has .png in it. For example [Anything here with .png is a match] So far I have this: "\[[^>]+]" which detects anything in between [ and ], but I wanted to only include strings that have .png
I am not experienced with Regular Expressions.
If I pass "abc [abc.png] abc [abc] abc" I want to get [abc.png]
If I pass "abc [abc.pngabc] abc [abc] abc" I want to get [abc.pngabc]