It's hard to say what the best solution would be without knowing exactly what dots you don't want removed, but for the example you give,
does the job. Ors/\.//;
...ors/\.(?!txt$)//g
s/\.(?![^.]+$)//g
the lowliest monk
In reply to Re: Removing dots
by tlm
in thread Removing dots
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |