« first day (1170 days earlier)      last day (2085 days later) » 

 
3 hours later…
3:02 AM
I finally found a probable cause for both of the nasty bugs I started investigating this morning, and I understand how to fix one of them. A hard day, but a good one.
 
 
9 hours later…
11:33 AM
hi
 "TEST".match(/[[:upper]]/)
=> nil
why?
"Test"[/[[:upper]]/]
=> "e"
oh, God...
 
12:04 PM
a = "TEST"
a == a.upper
Is that what you want?
 
12:17 PM
not really
there was another colon missing, it should be [[:upper:]]
 
oh.
Why not just use [A-Z]?
 
I think @cafe_ wants "TEST".match(/[A-Z]/) (as jan said)
 
no, I don't
 
It seemed like you do
 
as it misses all those fancy characters like Ç, É, Ą, Ć etc.
anyway, thanks, guys :)
 
12:20 PM
oh. Damn yo-unicode
 
Oh, that's kinda cool. I had no idea [[:word:]] things worked in regex.
 
sure, they do, checkout the docs. But remember to type in a pair of colons
 
Do you happen to know where I could find a list? Or at least a term for that to google?
 
a list? a list of what? this one? ruby-doc.org/core-2.3.1/…
 
12:23 PM
Thanks!
 
Ninja'd. Also, your version is one more outdated than mine :-)
 
They're probably the same...
 
actually, I use 2.4.0
but google shows some outdated results on the top of search results
usually it doesn't matter
 
I use the 2.4 documentation and and the 2.3.1 runtime. If there's a discrepancy, it's finally the time to upgrade
 
I use 2.4. 1
@JanDvorak Or you think it's a bug and spend hours freaking out.
 

« first day (1170 days earlier)      last day (2085 days later) »