01-29-2015
12,315,
4,560
Join Date: Jul 2012
Last Activity: 22 November 2019, 4:29 PM EST
Location: San Jose, CA, USA
Posts: 12,315
Thanks Given: 952
Thanked 4,560 Times in 3,818 Posts
If you don't identify what is using the regular expression, the requirements will often vary. In this case:
CAR[-_]
will match either of these strings anywhere in a line or file or string in you need a basic regular expression or extended regular expression that can be used in many utilities; it will not work in a filename matching pattern unless the regular expression is intended to only match an entire filename.