8000 正则表达式反向引用 · Issue #37 · holdyounger/ScopeBlog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
< 8000 a href="#start-of-content" data-skip-target-assigned="false" class="px-2 py-4 color-bg-accent-emphasis color-fg-on-emphasis show-on-focus js-skip-to-content">Skip to content
正则表达式反向引用 #37
Open
@holdyounger

Description

@holdyounger

正则表达式反向引用

[^a]* 表示匹配除了a以外的所有字符
[^abc]* 表示匹配除了a、b、c以外的所有字符,注意这里不是abc字符串,而是a、b、c任何一个字符都不匹配

当我们要不匹配某个字符串或者中文词组的时候,可以这样用
((?!天空).)* 这个表示匹配出'天空'之外的所有字符

regex(?![0-9]+) 匹配不是regex,但后面不是数字

blog link 正则表达式反向引用

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0