Lookbehind has limitations :
(?<=subexp) look-behind (?<!subexp) negative look-behind Subexp of look-behind must be fixed character length. But different character length is allowed in top level alternatives only. ex. (?<=a|bc) is OK. (?<=aaa(?:b|cd)) is not allowed. In negative-look-behind, captured group isn't allowed, but shy group(?:) is allowed.
You cannot place alternatives at a non-top level inside a (negative) view.
Put them on the upper level. You also do not need to hide some of the characters you made.
/(?<=href="|src=").*?"/
source share