Lol, I had no way of knowing that your date field was "dot delimited." My solution would naturally reject that. Here's a new approach that should do the trick given that new, previously unmentioned requirement.
/^SYS(?:[^%]+%){2,}[\d.]+\.pdf/i
Let me know how that works out. This time I'm specifically allowing the 'dot' delimiter in the date field. This solution is going to result in some backtracking though. It might be better written as:
/^SYS(?:[^%]+%){2,}(?:\d+)(?:.\d+)+\.pdf/i
This will get less backtracking, and thus should be a little more efficient, if that matters.
|