« first day (390 days earlier)      last day (3402 days later) » 

00:46
Hi guys
Any tips for reGex beginners?
It looks chinese to me!
 
6 hours later…
06:17
@meda Start getting acquainted with the easy stuff like character classes, anchors, basic quantifiers, capture/non-capture grouping?
after all, practice makes perfect (or at least, as close to it as you can)
 
2 hours later…
07:54
..
08:06
.{3}
btw I was thinking, what's better ? ... or .{3}. The first one is shorter...
first
of course, why involve a loop?
but unimportant for this example
[\s\S]{3}
\.(?!=\.)*
08:25
@CSᵠ a loop ? So you see quantifiers as loops, interesting ...
@JavierDiaz Impossibruuu in most regex implementations ...
@HamZa it has to be at the lower level
in asm would be 3 jumps
where ... will be continuous code
not thinking at compiler optimizations...
and pcre is damn optimized
anyway, not sure about this, but yes, that's how i see it
That makes sense
So then
\.(?!>\.)
@JavierDiaz A negative lookahead is expressed by (?!) and not (?!>)
^ hehe I'm already using it :P
08:43
I wanted negative lookbehind
But did it wrong :p
 
1 hour later…
09:49
how slow is regexp in mysql?
 
1 hour later…
11:06
@CSᵠ If you need regexp in mysql, you're mostly doing it wrong
likely
 
2 hours later…
13:11
s/mostly/most likely
 
7 hours later…
20:14
well, I once wanted to use regex in SQLServer. Had phone numbers, some with trailing 0 (1 or 2) and some not. Had to make them a bit more uniform. A replace of ^0+ would have been ideal, but had to use two CASE WHEN (one for double 0 and one for single 0) and two SUBSTR...
20:48
@Jerry what are some of the most useful tools/documentaion that have been helpful to you
20:58
@meda definitely regular-expressions.info

« first day (390 days earlier)      last day (3402 days later) »