# ... if(/([\[]\d+[\]])/){ # find an error number in the input file. format: [0-310] # ... if(/.*[$key]/){