Has anyone ever tried to describe a regular expression that matches regular expressions?
This question is almost impossible to find on the Internet due to duplicate keywords.
It is probably not applicable in real applications, because languages that support regular expressions usually have a method for parsing them, which we can use for testing, and a method for distinguishing regular expressions in code that can be used for searching.
But still, I wonder what the regular expression looks like, matching all regular expressions. It should be possible to write one.
, , . , .
? , , , , Lisp ( , HTML) :
, (.. ) , . p , , y . y, , , .
, , , :
, , ^(IMG(\d+))\.png$.
^(IMG(\d+))\.png$
, .
Edit:
¹tomp , PCRE (, , ) - , , ! . , , !
(, " " . , , . CS , , !)
, , , . . - [^@]+@[^@]+, " , ".
[^@]+@[^@]+
RFC 822. ? . , , .
, ... , .
^([igsmx]{1,})?\/(?=.*?(\\w|\\d|\[.*?\]|\(.*?\))).*?\/([igsmx]{1,})?$
, looooooot...
Source: https://habr.com/ru/post/1537141/More articles:How to use paperclip to process multiple file types - ruby-on-railsNo configuration files found in Logstash 1.4 - fileUse in for loop variable as selector? - stylusWhy does Netbeans suggest making the variable final - javaRegular expression matches in any order - javaHow to optimize this complex query? - sqlIs there an excel formula that will round negative numbers up? that is, round (-2.5) = -2 - excelCould not load box2d library for libgdx - javaRegular expression before or after - phphttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1537146/using-meteor-with-adobe-flash-createjs-toolkit&usg=ALkJrhiKVRsN1SD2C5LrLuhZ5MZPCE7zbAAll Articles