Remove word from string

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

I have 2 strings:

A = "filename.extension"

and

B = ".extension"

I want to remove B from A to get the filename ...

I prefer to do it this way just in case filename has also dots.

How can I do this?

Thanks,
Miguel
 
Back
Top