What's the technical reason for “lookbehind assertion MUST be fixed length” in regex?

For example,the regex below will cause failure reporting lookbehind assertion is not fixed length:

#(?<!(?:(?:src)|(?:href))=["\']?)((?:https?|ftp)://[^\s\'"<>()]+)#S

Such kind of restriction doesn't exist for lookahead.

42
задан wamp 26 September 2010 в 03:38
поделиться