I'm wanting to use javascript regexp to test if my string matches a regular expression. However, the regular expression that I'm trying to use causes my javascript to break.
I understand that I can typically do the following:
/e/.test("blah")
but when I try to use my expression, my browser barfs:
/(?<=^| )\d+(\.\d+)?(?=$| )|(?<=^| )\.\d+(?=$| )/.test("1.23")
What am I missing?