« first day (504 days earlier)      last day (3288 days later) » 

12:09 AM
 
.
 
=)))))))))))))
I see I made the all time list stackoverflow.com/tags/regex/topusers
 
@hwnd congrats!
cool list to be on
 
 
2 hours later…
2:47 AM
@zx81 wuuuut you reached +1000 answers :O
 
 
3 hours later…
5:52 AM
Hello I have posted this question for regex. This is the stack link stackoverflow.com/questions/24934288/…
I have this regex: ^(?:[A-Z][a-z]+,){1,3}$ but I want to allow image extension
 
@Mr.Happy hi :-)
 
like this: Desert.jpg,Chrysanthemum.jpg,Jellyfish.jpg,Lighthouse.jpg,
Hi avinash
can you help me in your regex
 
but only upto three
 
yes
i just want to allow image extension
 
give 2 mins
 
5:54 AM
ok no problem
 
want only jpg extension?
 
no only this: png|jpg|gif|jpeg
I want to allow this extension: png|jpg|gif|jpeg
 
great :)
once again thanks :)
 
any further queries?
 
5:59 AM
no thanks :)
 
Bye :-)
 
bye
 
6:19 AM
@HamZa Really 1000 answers? That's a bit scary. :)
@hwnd You mentioned this question earlier, gave it a crack. :)
@Unihedron In the less common series, from today, this one uses conditionals, and this one sets the (?s) flag in the middle of the regex, which allows a very compact phrasing (otherwise we'd need [^\r\n] etc)
Hey Uni let me know if I'm spamming you, just sharing the joy with patterns I have fun with since you seemed into it, but I can stop. :)
 
7:00 AM
@HamZa Forked the query. Link
 
 
4 hours later…
11:00 AM
@zx81 I like it. Legit regex questions :)
I'm in need of a regex to grep the first three letters of a word (from a word list) if it's not "pre", and the rest of the word too if it doesn't end in an "s", I have:

`/\b(?!pre)\w{1,3}((?=\w*s\b)(*ACCEPT)|\w*)/g`

I feel like this is a bulky regex, is there optimization potential or am I missing a easier path?
or does this belong to an actual question?
 
11:36 AM
@Jerry nice!
@Unihedron Should the whole word NOT contain "pre"?
 
@HamZa The word should not start with "pre".
 
@Unihedron /^(?!pre)\w*[^\Ws]$/gm ???
demo :P
 
@HamZa That's about right, except I'm attempting to assert that the "s" is not at the end of string though.
[^\Ws] is a neat trick though. :P
 
@Unihedron at the end of string or line?
 
line
 
11:41 AM
@Unihedron then [^\Ws]$ does the job :)
it matches a word character excluding the s :P
(at the end of line since the "m" modifier is enabled)
 
Yeah, really smart way of inverting an inverse signature. :P Thanks!
 
@Unihedron welcome, I thought about using (?!s)\w$ and then I thought hey but I could use that trick
 
12:34 PM
Ha, I got a syntax error for accidentally using \b+.
 
 
2 hours later…
2:39 PM
lol
 

« first day (504 days earlier)      last day (3288 days later) »