in reply to Re^3: Recognizing 3 and 4 digit number
in thread Recognizing 3 and 4 digit number

This one returns the following error:
Invalid [] range "\\/-\\ " in regex; marked by <-- HERE in m/ (?<![\\/ +-\\ <-- HERE \\w]) \\d{4} (?![\\/-\\ \\w]) /
I'm not really sure what is wrong.

Replies are listed 'Best First'.
Re^5: Recognizing 3 and 4 digit number
by tybalt89 (Monsignor) on Jan 02, 2017 at 03:40 UTC

    - should be at beginning or end of []