« first day (1482 days earlier)      last day (1176 days later) » 

3:33 AM
@GiantCowFilms MySQL can do matching, but not string manipulation/replacing with regex :-(
@androidplusios.design I think it will make more sense if you write it out as a SELECT and view the results
@androidplusios.design SELECT * FROM table WHERE id = 2 AND id = 3
@androidplusios.design SELECT * FROM table WHERE id = 2 OR id = 3;
@SteveRobbins Yup. When string manipulation time rolls around in MySQL, I always have to go back to LOCATE and SUBSTR. Gets messy quick
 
4:35 AM
@TehShrike I've placed the Regex processed data into the DB, I know it is bad practice, but bad practice is how you fight bad tools (just ask any web developer.... )
 
@GiantCowFilms You mean you parsed it with regex before inserting?
I don't think that's bad practice
 
@TehShrike The problem is I know have 2 copies
the parsed and the unparsed, I can't go backwards
 
If you need to select the data back by its parts, you have to have those parts in separate columns
@GiantCowFilms Ideally, if you need to parse it before inserting, you insert the parsed version in such a form that it can be reformed back into the original
 
@TehShrike not practicable
 
@GiantCowFilms Fair enough, I can imagine datasets where that would be the case
In any case, you need to store data in a way that is conducive to looking that data up again later
 
4:41 AM
It isn't to bad since I don't expect to have to change the value ever
and I know which copy I want
 
For the hyper-charged magical performant version of this, check out Lucene/ElasticSearch
 
interesting
 
and I'm not even kidding, ElasticSearch is mostly magic
 
How do you need your data parsed to make it well-searchable?
 
4:44 AM
not so much searchable is comparing two slightly different sets of data which have the same "value" when parsed
I'm using it in query you help me wright :D
 
What does that parsing query look like?
 
you mean the regex
?
 
Sure
 
its handeling se urls ironically the issue is they come in MANY forms
^(?<=^https?:\/\/blender.stackexchange.com\/q(?:uestions|)\/)[0-9]+(?=\/(?:[A-z‌​\-#0-9\/_?=]+|[0-9]+)?$)
StackExchange uses Elastic Search
 
oh man I can't even imagine an RFC-compliant url-matching regex
 
4:49 AM
g2g, sorry (its late here)
 
no worries
 
@TehShrike RFC compliant?
 
4:50 AM
this was just built to match any URL bse users might through at us
this incudes every single copiable url I could find
(there is separate code to chuck the odd unicode charicters)
at least it is miles better then the old system, which would take ONE type
even a get variable in the url (often added by chat) would fail the original testing regex
BTW, this is the proper see if it matches url
^https?:\/\/blender.stackexchange.com\/q(?:uestions)?\/[0-9]+\/(?:[A-z\-#0-9\/_‌​?=&]+|[0-9]+)?$
anyway, I now really really have to go D:, bye!
 
:-)
 

« first day (1482 days earlier)      last day (1176 days later) »