Extract and use numbers inside the file name?

Hello.
I wonder to find a solution for this issue:
lets suppose there is a file in this path:

/pros/mypro/raps/vy/dh/bgh.12mm15mm10nm.dat"

Now: I want to write a code to find 12mm, 15mm, and 10nm, and then convert them to mm and then calculate 12mm15mm(10*10^6)mm and gives the answer.
Thanks a lot for your time and help.
Best regards.
Mohammad.

Hi, Mohammad,
I hope that this is what you wanted:

Dear Estevao Teixeira .

This code is really what I needed.

I am so glad and I really appreciate your help.

Thanks a lot.
Best regards.
Mohammad.

If the file exist on internet and the path is like: “http//…com/Files/…”
What will change and how?
Thanks in advance.

Use URLParse to extract the path.