Questions tagged [regex]
For questions about the use of regular expressions within the Stack Exchange network, e.g. where they are supported. For questions about regular expressions in your own project, you'll need one of the main sites which accept those (depending on the context).
3
questions
21
votes
1
answer
440
views
Automatically recognize and remove "thanks"
There is a regex that should automatically remove all greetings from the top of posts. It does its job very well:
^ # begins at start of body
\s* # possible spaces
(
hii?...
2
votes
2
answers
233
views
Padding a comment with spaces
Currently, the 15 char minimum on comments can be defeated by padding out the middle with spaces.
Fix:
s/\s+/ /
HTML ignores extra spaces anyway.
16
votes
1
answer
3k
views
How to handle regex syntax highlighting [duplicate]
Many questions about regex include code blocks with language agnostic, POSIX compatible patterns, using default prettifying. (Example)
This looks kind of ugly and is confusing, since some parts are ...