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?

Follow

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:

· · Web · 0 · 0 · 0
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!