Skip to main content

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).

Filter by
Sorted by
Tagged with
37 votes
0 answers
414 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 ...
Fourier Pikachu's user avatar
11 votes
2 answers
380 views

Why does data explorer not support ILIKE, SIMILAR TO, or regular expressions (~)?

Why does the data explorer not support ILIKE, SIMILAR TO, or regular expressions ~? Talking to the devs: Would it be possible to add that functionality?
David's user avatar
  • 9,494
10 votes
1 answer
496 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 ...
zzzzBov's user avatar
  • 1,944
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 ...
Johannes Kuhn's user avatar
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 ...
doppelgreener's user avatar
21 votes
1 answer
439 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?...
Doorknob's user avatar
  • 45.4k
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 ...
Alastair McCormack's user avatar
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 ...
kapex's user avatar
  • 1,951
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 ...
Scott's user avatar
  • 239
3 votes
2 answers
242 views

What what? [regex] badge error? [duplicate]

Possible Duplicate: Tag-badges exploit According to the badges page, there has been 1 silver and 1 gold badge awarded for the [regex] tag on Stack Overflow. So I said "congrats" to the guy who's ...
Super Long Names are Hilarious's user avatar
2 votes
2 answers
232 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.
anonymous coward's user avatar