Skip to content

Instantly share code, notes, and snippets.

@songxiaofeng1981
Created November 16, 2012 09:53
Show Gist options
  • Save songxiaofeng1981/4086046 to your computer and use it in GitHub Desktop.
Save songxiaofeng1981/4086046 to your computer and use it in GitHub Desktop.
RegExp
# negative lookbehind
display:box; box-shadow: 1px 2px 3px black; box-sizing: 100% 100%;
逐行解释:
(?<!: ) Negative lookbehind 不包含前面含有 : 号的box
[^;] 不是分号的所有字符
+ 前面不是分号的所有字符1个或多个
; 匹配一个分号
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment