I wrote a regular expression which I expect should work but it doesn't.
var regex = new RegExp('(?<=[)[0-9]+(?=])')
JavaScript is giving me the error:
Invalid regular expression :(/(?<=[)[0-9]+(?=])/): Invalid group
Does JavaScript not support lookahead or lookbehind?
See Question&Answers more detail:os