Removing text from either side of what I want to keep

A place to try and solve your RegEx problems.
Post Reply
jez.hall
Posts: 1
Joined: Wed Mar 09, 2022 10:20 am

Removing text from either side of what I want to keep

Post by jez.hall »

Hello everyone

I have lots of files that contain data similar to this:

4,FL5382157-21/1,MC322204
5,FL5380936-02/0,PIVOT
6,FL5382167-55/8,LATCH

I need to strip away and remove the FL and the /n from every line

so that FL5382157-21/1 would become 5382157-21

So my example above would be:
4,5382157-21,MC322204
5,5380936-02,PIVOT
6,5382167-55,LATCH

Does anyone know how to make an expression to do this ?

Thanks!
Jez
Post Reply