Invalid regular expression: invalid group specifier name /(?<=\/)([^#]+)(?=#*)/
사파리에서 정규식 중에 positive lookbehind는 동작을 하지 않는다.
그래서 크롬으로 개발하다가 사파리에서 열었을 때 제목과 같은 문구를 만날 수 있다.
Works in Chrome, but breaks in Safari: Invalid regular expression: invalid group specifier name /(?<=\/)([^#]+)(?=#*)/
In my Javascript code, this regex /(?<=\/)([^#]+)(?=#*)/ works fine in Chrome, but in safari, I get: Invalid regular expression: invalid group specifier name Any ideas?
stackoverflow.com
---
https://stackoverflow.com/questions/7376238/javascript-regex-look-behind-alternative
javascript regex - look behind alternative?
Here is a regex that works fine in most regex implementations: (?<!filename)\.js$ This matches .js for a string which ends with .js except for filename.js Javascript doesn't have regex lookbe...
stackoverflow.com
---
https://stackoverflow.com/questions/2341184/what-does-x-mean-in-regex
What does (?<=x) mean in regex?
What does (?<=x) mean in regex? By the way, I have read the manual here.
stackoverflow.com