All Questions
Tagged with regex discussion
8
questions
37
votes
0
answers
415
views
Bug which mistakenly accuses the writer for shouting and issues a warning
Today, while typing an answer on Math.SE, I needed to use the factorial expression. While typing in my answer, I received the following warning:
DON'T SHOUT! All-caps posts are considered rude and ...
10
votes
1
answer
497
views
How to ask a good regex question? [closed]
What are the qualities of a good, answerable question that involves regular expressions?
What information does an asker need to include to be able to receive good answers to regex questions?
I often ...
14
votes
2
answers
485
views
Regex - don't feed them - teach them how to fish
Currently most* of the questions in the regex have the following form:
I want to match 3 numbers, followed by foo and 2 letters. How can I get the number?
Such questions can be easily translated ...
3
votes
2
answers
185
views
What more can we do for string-manipulation questions that ask for a regex solution when non-regex solutions would be OK too?
I find we have a very common class of problem here:
Someone needs to do some string manipulation
They recognise that a regex is one of the possible solutions, even if there are valid solutions which ...
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?...
13
votes
2
answers
282
views
Why are poor quality Regex questions so quickly answered?
I've noticed that most low effort, low quality, fish begging answers are met with a deserving "what have you tried?", while low effort, low quality regex questions are rarely met with the same ...
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 ...
3
votes
0
answers
118
views
How does Stack Exchange parse out URLs so well from answers and comments?
There are a number of questions already on SO about parsing out a URL from text (here and here are 2 OK examples I've found). Even Jeff Atwood posted a blog entry about this. These are a bit ...