Yeah, I think so.
Some regex questions will be too basic and ought to get downvoted or an RTFM answer, but there's something to learn from seeing what confusing regular expressions people encounter in the wild.
Stackoverflow users are also good at deciphering why a regular expression is used rather than just what it is and how it works. For example, I could learn that
/^\s+|\s+$/g
means
1st Alternative: ^\s+
^ assert position at start of the string
\s+ match any white space character [\r\n\t\f ]
Quantifier: Between one and unlimited times, as many times as possible, giving back as needed [greedy]
2nd Alternative: \s+$
\s+ match any white space character [\r\n\t\f ]
Quantifier: Between one and unlimited times, as many times as possible, giving back as needed [greedy]
$ assert position at end of the string
g modifier: global. All matches (don't return on first match)
butBut I'd probably be better served by someone pointing out "it“it matches white space at the front and back of the string"string.”