ё особенная и не входит в него.
#regexp
ё особенная и не входит в него.
RegExp lastIndex Mutates Global Matches?!
Global regex has MEMORY! The lastIndex property remembers where it stopped. Reset it to 0 and the same regex matches DIFFERENTLY. This mutation behavior will cause bugs you'll never find!
#javascript #javascripttricks #regexp #lastindex #globalregex #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #regexmutation #advancedjavascript

Need a #regexp sanity check from someone else who actually knows their regexp
I was using the following regexp to find empty spans to remove.
<span style=".*?"><\/span>
My understanding is that the ? means it'll find the smallest valid match that's followed by "></span>
that _worked_ for YEARS in one of my codebases and now it's matching across multiple spans.
<span style="[^"]*"><\/span>
is the fix BUT my question is _should I even NEED a fix?_
I prefer Gryphon, but ydy.
NOTE: this was originally published on the older version of this blog, some content may be broken/outdated.
Following a discussion on hacker news I have found myself wondering about regular expressions in ruby 1.9.
In this major version ruby switched its regex engine to oniguruma (and, since a few days ago to a fork of it called Onigmo ).
This engine is widely more powerful than the […]
https://riffraff.info/2012/02/matching-nested-structures-with-regexps-in-ruby-1-9/
NOTE: this was originally published on the older version of this blog, some content may be broken/outdated. Following a discussion on hacker news I have found myself wondering about regular expressions in ruby 1.9. In this major version ruby switched its regex engine to oniguruma (and, since a few days ago to a fork of it called Onigmo ). This engine … Continue reading "Matching nested structures with Regexps in Ruby 1.9"
Holy guacamole, Batman! You can use regular expressions in #LibreOffice Calc!
This makes me unreasonably happy. (Why did I stick with MS Office so long?)
Регулярные выражения в плагине «Аналитика» для Р7 офис
Если обычный человек посмотрит на исходный код программы, написанный на популярных языках вроде JavaScript или Python, то по контексту и знакомым словам он сможет понять, что происходит. Но регулярные выражения со стороны похожи на случайный набор символов – будто кошка прошла по клавиатуре. В этом случае даже код на Ассемблере выглядит более читаемым. Мы в « ЛАНИТ-Интеграции » не понаслышке знаем, как бывает сложно собрать воедино данные из нескольких источников, привести их к общему виду и создать на их основе единую таблицу с полным отчетом. Для решения этой задачи был создан плагин «Аналитика» для Р7-офис как инструмент автоматизации для выгрузки и обработки данных. В этой статье в блоге ЛАНИТ хочу рассказать вам о новых возможностях поиска данных в плагине в сочетании с функционалом RegExp (они же регулярные выражения или просто регулярки).
https://habr.com/ru/companies/lanit/articles/960568/
#ланит #ланитинтеграция #regex #regexp #регулярки #регулярные_выражения