Hi everybody!
I have a problem with a text file that I need to clean up.
My text file is like this: ironia/ironia/S-FS (/(/PU lo/lo/PQMS soprannomineranno/soprannominare/V-P3IF "/"/PU Pique/pique/SP la/lo/RDFS lune/luna/S-FP "/"/PU a/a/E causa/causa/S-FS della/di/E-FS forma/forma/S-FS del/di/E-MS suo/suo/A-MS naso/naso/S-MS
I have to remove everything that follows "-" so I can get: ironia/ironia/S (/(/PU lo/lo/PQMS soprannomineranno/soprannominare/V "/"/PU Pique/pique/SP la/lo/RDFS lune/luna/S "/"/PU a/a/E causa/causa/S della/di/E forma/forma/S del/di/E suo/suo/A naso/naso/S
I've tried this regex: s/-\w{2,}/ /;
but I don't know how to make ti work, beacuse this leaves everything the way it was.
I'm sorry if this is a dumb question, but I really don't know how to do that.
Thanks for you help