« first day (990 days earlier)      last day (3958 days later) » 

11:07 PM
what about php new site?
 
@rogcg sweet
 
.
 
OK.. i have this problem after a query with mysqli, I try to get the num rows of the query and have this error.. Trying to get property of non-object
but when I var_dump the result object, the property is there..
this is what i do:
 
@Rafee oh please stop that
 
$query = $this->mysqliObj->query("SELECT...

if($query->num_rows)
but then I get that error
 
11:22 PM
bah, had to switch everything to go through TOR. some router may have exploded somewhere here in frankfurt =_=
 
11:36 PM
Anyone know how I can change this part of my regex to be match ".!?" but not if a single "c" is before hand (e.g "c.")?

[.?!]
 
a simple lookbehind
(?<!c)[.?!]
negative that is ...
 
@HamZa Yes, I'm just reading up on it.
I'm trying it out now, thanks for the fast reply.
 
@Dan nope, also note that there is regex101.com which may be handy ...
 
@HamZa /(?<!c)[.?!](?=\s*[a-z])/i
I'm not getting what I'm after..
it's for preg_split()
 
@Dan tell me what you want to match .... Please be precise
 
11:42 PM
$split_content = preg_split('/(?<!c)[.?!](?=\s*[a-z])/i', $content, 2)
Split a sentence after a ".!?" but not if it ends with "c."
 
@Dan can you give me what's in $content ? (in a link)
 
I can give you this:
A pair of late 19th early 20th c. Royal portrait photographs of the future George V and Edward VIII. Prince Edward was born at Richmond on the 23rd June 1894. Mounted in their original vellum and gilt embossed frames.
It needs to end after "VIII"
 
@Dan Did you check my early answer? stackoverflow.com/a/16377765
 
@HamZa I haven't seen this, no.
 
I've added the case of end of line
http://regex101.com/r/lU6fE7
Note that you must not use the g modifier
 
11:51 PM
Ah, hence why I'm getting the error..?
 
@starky relogin and you'll be able to chat ...
@Dan Error message please. Also I hope you didn't forget ;
 
'night
 
@HamZa preg_split('/(?<!c)[.?!](?=\s*[a-z]|$)/i', $content);
 
@igorw good night
 
print_r() result

Array ( [0] => A pair of late 19th early 20th c. Royal portrait photographs of the future George V and Edward VIII. Prince Edward was born at Richmond on the 23rd June 1894. Mounted in their original vellum and gilt embossed frames [1] => )
 
@HamZa Looks good to me, so I'm not sure what the issue is...I'm looking.
It's almost 1am so I'm a bit slow..
 
@Dan heh, it's 2am here :D
 
Europe somewhere?
I'm in the UK
It's raining : |
 
@Dan NL
 
Ah cool, lots of good kitesurfers come from NL
Random, but there you are.
 
11:58 PM
@Dan Try to split by \.
preg_split('#\.#' ...
and tell me the results ...
 

« first day (990 days earlier)      last day (3958 days later) »