Hey guys, I need to be able to get a certain value out of the following.
Job# : 442254 Contact : TO BE ADVISED Model : BZ500 50GN02630 Purchase Order/Your Reference : Contract Type: C3 CopyPlan - Contract Minimum Job Type: H Audit, Admin, Housekeeping Fault/Problem(s) reported: CHECK SENTINEL EMAIL/HTTPS Solution: Install KRDS 6 via IP Kit Job Notes: machine seems to be out of storage now but not on sentinel. please setup sentinel via email concentrator
The template is always the same in certain areas and the line I am interested in is
Model : BZ500 50GN02630
This 'Model :' is always consistent it's the 2 values after that change and it is the last value that I am after.
So will need a preg_match that finds the words Model : and looks for another that contains letters and numbers and can be between 2-10 chars and then looks for the last
value on the line and returns that value, the last value is letters and chars and can be 5-20 chars.