Skip to content

Please support the RegExp of Blacklist (?!⋯⋯) and(?<!⋯⋯) #10

@dnknn

Description

@dnknn
  • whitelist 👉 (?=⋯⋯)(?<=⋯⋯)  ☑Supported
  • blacklist 👉 (?!⋯⋯)(?<!⋯⋯)   ❌not support, Can support them ❓

(?!⋯⋯)(?<!⋯⋯) is a very, very useful and efficient ⏳ filter(blacklist)
🗣Otherwise, the intelligent blacklist matching cannot be realized.

General usage: abc(?!⋯⋯).* or abc(?!⋯⋯) .*(?<!⋯⋯)abc or (?<!⋯⋯)abc

for example !^(https?://)www\.(.*/.*)!$1$2!gm  But how to exclude a certain keyword? 👇

Clicking to see screenshot

0722013612


!^(https?://)www\.(?!ithome|pan)(.*/.*)!$1$2!gm

^(https?://)www\.(?!ithome|pan)(.*/.*)

👆There is no problem with this regularity itself,

Please see the following RegExp matching testing 👇

or RegExp graphical analysis.👇

Clicking to see screenshot

0722014353

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions