MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1w15oga/seriously_recursive_regex/p6quccw/
r/programminghorror • u/Flame77ofc • Aug 28 '26
46 comments sorted by
View all comments
Show parent comment
4
I don't see anything "malformed", but pretty sure (?:\w|[^\w\s]) is just .
(?:\w|[^\w\s])
.
Yes, almost. It's any single word character, or any single character that's neither a word character nor a space. So it's simply "not a space character", or [^\s].
3 u/jordanbtucker Sep 01 '26 Which is just \S
3
Which is just \S
\S
View all comments
Show parent comment
4
u/iakobski Aug 30 '26
Yes, almost. It's any single word character, or any single character that's neither a word character nor a space. So it's simply "not a space character", or [^\s].