That particular pain in realizing that you probably *should* rewrite that 200 line function into 3-4 ... dozen regular expressions.
to keep it from turning into a 600 line function.
That particular pain in realizing that you probably *should* rewrite that 200 line function into 3-4 ... dozen regular expressions.
to keep it from turning into a 600 line function.
正規表現テスターを自作した(リアルタイムハイライト + キャプチャグループ表示 + 日本語Unicode対応)
https://qiita.com/sakutto-panda/items/6502e587d933c33723e5?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items
I'll post this here on the odd chance that someone is good with #SublimeEditor and/or #regex
I'm having issues parsing a vasm error message because the regex capture groups don't return results in the correct order.
https://forum.sublimetext.com/t/capturing-group-order-for-result-file-regex/78658

When parsing errors such as error 2 in line 1741 of "src/Wonderland.s": unknown mnemonic <dasdvx> I’m currently using this regular expression in my panel’s result_file_regex: panel_settings.set('result_file_regex', r'^error (?:\d+) in line (\d+) of "([^"]+)": (.+)$') which captures all the right bits but in the wrong order (clicking on the error tries to open the file 1741). How do I control the order in which Sublime Text parses the regex’s results? (this was already asked here and here but...
I once again need to mention how much I love regular expressions. Just wrote one that takes a VTT file and gives the first and last timestamps of groups of consecutive segments with the same speaker (e.g., Alice spoke from 02:31 to 17:03, then Bob spoke from 18:24 to 26:59).
Regex ist für mich so ein Thema, bei dem ich innerlich erstmal bremse. Nicht, weil es grundsätzlich schlecht wäre, sondern weil es sehr leicht ist, etwas hinzuschreiben, das irgendwie funktioniert, aber niemand im Team später noch sauber lesen oder sicher beurteilen kann. Genau das ist das Probl
https://magicmarcy.de/regex-in-java-wann-es-hilft-und-wann-du-es-lassen-solltest
#Programming #Regex #Java #Ausdruck #Coding #Muster #Pattern #Zeichenkette #Regeln #Werkzeug

Regex ist für mich so ein Thema, bei dem ich innerlich erstmal bremse. Nicht, weil es grundsätzlich schlecht wäre, sondern weil es sehr leicht ist, etwas hinzuschreiben, das irgendwie funktioniert, aber niemand im Team später noch sauber lesen oder sicher beurteilen kann. Genau das ist das Problem. Ein Regex kann auf den ersten Blick kompakt wirken und trotzdem fachlich danebenliegen oder mehr matchen als gedacht.
Any #regex and #grep gurus able to help me understand something? I'm not the best with regex, trying to learn.
https://regex101.com/r/iHvpcJ/1
I'm trying to return the powered state of the wifi device from connman output. It seems like what I have here in regex101 should be returning the true or false state, but when I try to use the regex with grep I'm getting a warning:
`grep: warning: stray \ before N`
I'm struggling to figure out what I need to change to make it work with grep.
Tengo una hoja de cálculo con casi 640 celdas con contenidos de este tipo:
Explicación excelente (4)
blah (3)
…
Quería extraer en número, puntuaciones de 0 a 4, para poder hacer medias y eso. Ha sido extraordinariamente fácil gracias a mis reducidisísimos conocimientos de expresiones regulares:
```
=REGEX(C3;”[0-4]”)
y ¡chimpún! números extraidos.