Questions tagged [regex]

For questions about the use of Regular expressions within the Stack Exchange network

8
votes
2answers
219 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?
8
votes
1answer
304 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
2answers
390 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
2answers
176 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 ...
15
votes
1answer
238 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
2answers
266 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 ...
11
votes
1answer
1k 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
0answers
115 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 ...
3
votes
2answers
222 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 ...
2
votes
2answers
226 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.