I need to load a script file to run the test of my devices. This file must be related to the product, i.e. model and software version. To avoid mistakes, I would like to implement a verification that both file and product match. The problem is that the representation is quite different, like shown in this example:
information read from product: V SW 3.03-12 10-11-05 XM-90
name of the file: XM90_tsds3.03287257.sw
That´s only as an example, and the patterns can also differ a bit from one product to another one. What I would like to check is the parameter after SW (in this case 3.03) and after XM (90) in the product information. This values can also change, for example it could be 5.1 and XM105...
How can I implement that? The main issue is to extract the numbers (in this case 3.03 and 90), and then use a Match pattern function... How can I do for the extraction?
Thanks in advance