3 ms·
s#s/his/her#s/his/their# also works and avoids awkward escaping. The first symbol after s is used as the separator. Works in vim, at least. In other words: s%
by maest 6y ago
s#s/his/her#s/his/their# also works and avoids awkward escaping. The first symbol after s is used as the separator. Works in vim, at least.
In other words:
s%s/s\\/his\\/her/s\\/his\\/their/%s#s/his/her#s/his/their#%
- monsieurbanana 6y agoDid you just assume my regex engine is pcre gendered???
- makeworld 6y agoWow, I've never heard this joke before. Original and well-applied to the situation.
- aaronmdjones 6y agoawkward escaping Or as I've seen it called, "leaning toothpick syndrome".