I’m struggling with this simple regex that is not working correctly in Safari: It should match each ?, except of the first one. I know that lookbehind is not working on Safari yet, but I need to find some workaround for it. Any suggestions? Answer You can use an alternation capture until the first occurrence of the question mark. Use