I want to split a string based on a pattern. my string is something like this.
10/8/2007 5:03:06 PM thakurab *************RE CIVED MAIL FROM MIKE FOR THE PQR AND DPS CRETION******** *************** PQR Start Time: 10/08/07 16:29:09 New PQR State: Assigned Respond Due Date: 10/09/07 00:29:09 Resolve Due Date: 10/10/07 16:29:09 Resolved On: 10/8/2007 5:23:40 PM pandeyra
usually, there is date/time in the start of sentence followed by the name(thakurab, in this case). the string has to split after this combination. the result shuld be something like this:
10/8/2007 5:03:06 PM thakurab
*************RE CIVED MAIL FROM MIKE FOR THE PQR AND DPS CRETION******** *************** PQR Start Time: 10/08/07 16:29:09 New PQR State: Assigned Respond Due Date: 10/09/07 00:29:09 Resolve Due Date: 10/10/07 16:29:09
10/8/2007 5:23:40 PM pandeyra
plz guide me through this. Also, will regex help in achieving this?
Thanks,
Prasanna.
10/8/2007 5:03:06 PM thakurab *************RE CIVED MAIL FROM MIKE FOR THE PQR AND DPS CRETION******** *************** PQR Start Time: 10/08/07 16:29:09 New PQR State: Assigned Respond Due Date: 10/09/07 00:29:09 Resolve Due Date: 10/10/07 16:29:09 Resolved On: 10/8/2007 5:23:40 PM pandeyra
usually, there is date/time in the start of sentence followed by the name(thakurab, in this case). the string has to split after this combination. the result shuld be something like this:
10/8/2007 5:03:06 PM thakurab
*************RE CIVED MAIL FROM MIKE FOR THE PQR AND DPS CRETION******** *************** PQR Start Time: 10/08/07 16:29:09 New PQR State: Assigned Respond Due Date: 10/09/07 00:29:09 Resolve Due Date: 10/10/07 16:29:09
10/8/2007 5:23:40 PM pandeyra
plz guide me through this. Also, will regex help in achieving this?
Thanks,
Prasanna.
Comment