Reply To: Grep question

#52662

Lookbehind does not accept variable length arguments — you cannot use “+”, “?”, “*”, or any value x other than n in “{n,[x]}”. You can only group together multiple fixed-length lookbehinds like this:

((?<=[ul ]{14})|(?<=[ul ]{15})),

But I don't think it's necessary — if you already found 14, why would you want to test if there are even more?

This article was last modified on May 6, 2010

Comments (0)

Loading comments...