I want to create a regex, which is going to be used on paths. etc
\\oe-file02\H\01-Products\051-Screw conveyor Stainless Steel\070-Outlet-Ø600\051-070-084-03.ipt
\\oe-file02\H\01-Products\051-Screw conveyor Stainless Steel\070-Outlet-Ø600\051-070-090.ipt
\\oe-file02\H\01-Products\001-Disc-PED\042-Stator-parts-1800\001-042-004M.ipt
\\oe-file02\H\01-Products\001-Disc-PED\042-Stator-parts-1800\001-042-test.ipt
\\oe-file02\H\01-Products\001-Disc-PED\042-Stator-parts-1800\001-042-004Mt.ipt
The regex should select. should select the following values:
xxx-xxx-xxx-xx.ipt
xxx-xxx-xxxB-xx.ipt
xxx-xxx-xxxM-xx.ipt
Where the x's are int's from 0-9
Everything that does not follow the above should be ditched, so even the most random bunk etc 9155-123-testo-123.ipt, should be stripped.
the Regex should ONLY select from the first 3 samples, and it will have to select the last numbers of the path. In which this case is:
"051-070-084-03.ipt"
"051-070-090.ipt"
"001-042-004M.ipt"
The last two which are: Should not be selected.
"001-042-test.ipt"
"001-042-004Mt.ipt"
I really hope that somebody can help me out with this.