Reputation: 2673
Adding/removing the "+" doesn't change the output. But I don't get any errors either. what does "+" do here ?
/.{3}+/g
Upvotes: 1
Views: 73
Reputation: 694
var re = /.{3}+/g;
^
SyntaxError: Invalid regular expression: /.{3}+/: Nothing to repeat at new RegExp (native)
This is what I get in nodejs (v.0.12.4)
Upvotes: 0