Is there a regular expression to detect a valid regular expression? Asked 10 years, 11 months ago / it-юмор :: регулярные выражения :: geek (Прикольные гаджеты. Научный, инженерный и айтишный юмор)

it-юмор geek регулярные выражения 
Is there a regular expression to detect a valid regular expression?
Asked 10 years, 11 months ago Active 4 days ago Viewed 192k times
941
Is it possible to detect a valid regular expression with another regular expression? If so please give example code below.
regex
938
✓
(?:
Подробнее
Is there a regular expression to detect a valid regular expression? Asked 10 years, 11 months ago Active 4 days ago Viewed 192k times 941 Is it possible to detect a valid regular expression with another regular expression? If so please give example code below. regex 938 ✓ (?: (?:[A?+*{}()[\]\\|]+ I W- | \[ (?: \A?\\. | \A[A\\] I [A\\A] ) (?: [A\]W]+ I W- )* \] I \( (?:\?[:=!]|\?<[=!]|\?>)? (?1)?? \) I \(\? (?:R|[+-]?\d+) \) ) (?: (?:[?+*]|\{\d+(?:,\d*)?\}) [?+]? )? I M )# ) $ / # start of string # first group start # literals and A, $ # escaped characters # character classes # parenthesis, with recursive content # recursive matching # quantifiers # alternative # repeat content # end first group # end of string This is a recursive regex, and is not supported by many regex engines. PCRE based ones should support it. I Used the regular.expression to devaluateoy the regular.expressions A
it-юмор,geek,Прикольные гаджеты. Научный, инженерный и айтишный юмор,регулярные выражения
Еще на тему
Развернуть
страшна вырубай
Если у вас есть проблема и вы хотите решить ее с помощью регулярки, то теперь у вас две проблемы.
Si1ver Si1ver 14.09.201912:46 ответить ссылка 12.4
Perl - решение обоих проблем
Теперь у вас три проблемы
int16 int16 14.09.201919:29 ответить ссылка 2.5
Какой кошмар.
ZymeR ZymeR 14.09.201913:11 ответить ссылка 0.0
Вхат а нигхтмаре.
пора вводить тег "карательное программирование"
9Tails 9Tails 14.09.201913:12 ответить ссылка 4.8
Я не понял???(
объясните технарю пожалуйста.
Flame! Flame! 14.09.201913:46 ответить ссылка -1.2
Есть такая штука - регулярные выражения - специальный язык, используемый для поиска/проверки/замены/итп строк. Для того, чтобы распарсить что-то сложное, регулярное выражение будет очень длинным, запутанным и трудно понимаемым, что является источником множества шуток.
- регулярное выражение будет очень длинным, запутанным и трудно понимаемым
Если твоё регулярное выражение "длинное, запутанное и трудно понимаемое" - ты пишешь его неправильно.
Нет ли шансов, поменяв где-то один символ, вдруг вызвать Сотону?
iNji iNji 14.09.201914:17 ответить ссылка 0.3
Это программирование, а не экзамен по латыни
Но в принципе, можно
Киберсатану
03:3 03:3 14.09.201914:49 ответить ссылка 0.2
От этого вся боль с регулярными выражениями
ceezee ceezee 14.09.201917:03 ответить ссылка 0.0
Сатану не вызвать, пока ты не решил распарсить HTML регуляркой

Rege̿̔̉x-based HTML parsers are the cancer that is killing StackOverflow it is too late it is too late we cannot be saved the trangession of a chi͡ld ensures regex will consume all living tissue (except for HTML which it cannot, as previously prophesied) dear lord help us how can anyone survive this scourge using regex to parse HTML has doomed humanity to an eternity of dread torture and security holes using regex as a tool to process HTML establishes a breach between this world and the dread realm of c͒ͪo͛ͫrrupt entities (like SGML entities, but more corrupt) a mere glimpse of the world of reg​ex parsers for HTML will ins​tantly transport a programmer's consciousness into a world of ceaseless screaming, he comes, the pestilent slithy regex-infection wil​l devour your HT​ML parser, application and existence for all time like Visual Basic only worse he comes he comes do not fi​ght he com̡e̶s, ̕h̵i​s un̨ho͞ly radiańcé destro҉ying all enli̍̈́̂̈́ghtenment, HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo​͟ur eye͢s̸ ̛l̕ik͏e liq​uid pain, the song of re̸gular exp​ression parsing will exti​nguish the voices of mor​tal man from the sp​here I can see it can you see ̲͚̖͔̙î̩́t̲͎̩̱͔́̋̀ it is beautiful t​he final snuffing of the lie​s of Man ALL IS LOŚ͖̩͇̗̪̏̈́T ALL I​S LOST the pon̷y he comes he c̶̮omes he comes the ich​or permeates all MY FACE MY FACE ᵒh god no NO NOO̼O​O NΘ stop the an​*̶͑̾̾​̅ͫ͏̙̤g͇̫͛͆̾ͫ̑͆l͖͉̗̩̳̟̍ͫͥͨe̠̅s ͎a̧͈͖r̽̾̈́͒͑e n​ot rè̑ͧ̌aͨl̘̝̙̃ͤ͂̾̆ ZA̡͊͠͝LGΌ ISͮ̂҉̯͈͕̹̘̱ TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡ H̸̡̪̯ͨ͊̽̅̾̎Ȩ̬̩̾͛ͪ̈́̀́͘ ̶̧̨̱̹̭̯ͧ̾ͬC̷̙̲̝͖ͭ̏ͥͮ͟Oͮ͏̮̪̝͍M̲̖͊̒ͪͩͬ̚̚͜Ȇ̴̟̟͙̞ͩ͌͝S̨̥̫͎̭ͯ̿̔̀ͅ

https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags
int16 int16 14.09.201919:33 ответить ссылка 1.4
а как же теорема гöделя о неполноте? или это разрыв континуума?
villy villy 15.09.201903:04 ответить ссылка 0.6
Только зарегистрированные и активированные пользователи могут добавлять комментарии.
Похожие темы

Похожие посты
OH MY GOD I'd heard about Windows 11 calling a zip file a 'postcode file' in UK English because of really lazy translating but it's ACTUALLY HERE ON MY PC like not even in beta this is actually happening right now in publicly available Windows
O	Open	Enter
g^> Open with	>
Add to Favourites GO	Co
подробнее»

it-юмор geek,Прикольные гаджеты. Научный, инженерный и айтишный юмор Windows 11 Windows Операционная система без перевода it humor geek windows 11 windows it юмор

OH MY GOD I'd heard about Windows 11 calling a zip file a 'postcode file' in UK English because of really lazy translating but it's ACTUALLY HERE ON MY PC like not even in beta this is actually happening right now in publicly available Windows O Open Enter g^> Open with > Add to Favourites GO Co
Привидение
\
Ну это вообще не страшно
Не смешите мои тапочки
Ядерная
война
О*.
„у
й' (
т
^ \ ... у# ч .г '	: 'ш£
у. 1;
Это маловероятно
подробнее»

it-юмор geek,Прикольные гаджеты. Научный, инженерный и айтишный юмор регулярные выражения

Привидение \ Ну это вообще не страшно Не смешите мои тапочки Ядерная война О*. „у й' ( т ^ \ ... у# ч .г ' : 'ш£ у. 1; Это маловероятно
Email
Confirm Email Password
Confirm Password
O Your password must be at least 8 characters long and include an uppercase letter, lowercase letter and a number.
The field Password must match the regular expression ’A.*(?=.{8,})(?=.*\d) (?=.*[a-z]X?=.*[A-Z ]).*$’.
The field Confirm Password mus
подробнее»

пароль регулярное выражение программистский юмор сложность пароля попробуй подбери песочница спизжено внезапно geek,Прикольные гаджеты. Научный, инженерный и айтишный юмор

Email Confirm Email Password Confirm Password O Your password must be at least 8 characters long and include an uppercase letter, lowercase letter and a number. The field Password must match the regular expression ’A.*(?=.{8,})(?=.*\d) (?=.*[a-z]X?=.*[A-Z ]).*$’. The field Confirm Password mus