I am trying to capture specific data where a colon exists. I have tried this:
preg_match_all("/^(.+):(.+)/im", $input_lines, $output_array);
on this input data
last_name, first_name
bjorge philip: hello world
bjorge:world
kardashian, kim
some http://hi.com ok
jim https://hey.com yes
same http://www.vim.com:2018 why
it's about 20/08/2018 1:23 pm
time is 01:20:24 now
capture my name : my name is micky mouse
mercury, freddie
I need to be:
captured
capture me :
if you can
where is : freddie
freddie is not:
home
I need to capture the bjorge philip: hello world
, bjorge:world
, I need to be: captured
, capture me : if you can
, where is : freddie
, freddie is not: home
and capture my name : my name is micky mouse
lines and exclude any line that contains either time or URL