I should really be able to read a regexp by now, but all the same can anyone talk me through this?
/([^"^\s]+)\s*|"([^"]+)"\s*/g
Just for background; it’s used in Alfresco to match on document tags. Is there a website out there you can plug these into and get an explanation back (other than SO)!
It either matches an identifier (something that doesn’t contain
",^, or any space-like character — space, tab, new lines) or something between quotes, either followed by any number of spaces.