I have a regular expression i.e.
[A-Z]\w*(\s+([A-Z0-9]\w*|-[a-z]?|and|or|of|of the))*(?=\s*,?\s*\(?\s*as defined below\s*\)?)
and it is working fine for me for running it on a word document. But changing it to
[A-Z]\w*(\s*([A-Z0-9]\w*|-[a-z]?|and|or|of|of the))*(?=\s*,?\s*\(?\s*as defined below\s*\)?)
with just changing \s+ to \s* takes too much time. and does not return the result even in 10 minutes(waiting more than that is quite vain). even
[A-Z]\w*(\s([A-Z0-9]\w*|-[a-z]?|and|or|of|of the))*(?=\s*,?\s*\(?\s*as defined below\s*\)?)
also not giving result in less than 10 minutes.
Moreover i am testing it for
Registration Rights has agreed not to
exercise such rights until after expiration of the Lock-Up Period (as defined below)
and expecting Lock-Up Period
as result