Not a regex expert, but I have a query that returns the following string.
(**MACHINE: OKUMA LB3000 *)(**DATE: 8/22/2024 *)(**W/O:W62502**LOT:1**OP:40 *)(**P/N:32205 *)
I can extract the value after W/O: with this regex regex = /[W][0-9]{5}/ but I cannot see to get any other values like all the numbers after P/N:, using tools like regex101 I have this regex (?<=P/N:)\d+(?=\s) but it tells me ? The preceding token is not quantifiable
How can I break this string down so I can get some of the values after the :? Is regex the right way to go about this?