Follow

Today's absolutely terrifying Vim regex:

% s/\v([^a-z_\.&\?'"\=]@<=[a-z_]+)_([a-z])([a-z_]+([^a-z_:]@=|$))/\1\U\2\E\3/g

Any guesses as to what unsuitable tasks I am applying this hammer to today?

· · Web · 1 · 0 · 0

said regex broken down a bit, spoilers I guess 

Broke this down a bit, and found a nifty regex syntax highlighter for Vim that worked decently enough:

said regex broken down a bit, spoilers I guess 

@cincodenada
Always excellent when one writes a singular line of code and then needs 17 lines of prose just to explain *what* is happening there. Not even yet *why*.

Sign in to participate in the conversation
Cybrespace

cybrespace: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!