How do i write a regex that matches the syntax in either perl ruby javascript
The syntax is like /my pattern here/modifiers where modifiers are i, g and other single letters.
I wrote the below however that wouldn't allow me to escape escape / with using . AFAIK i can write /Test\/Pattern/i in those languages to match the text Test/Pattern
/[^/]+/[^ ]*