another (simple) reg expression problem
Posted: Wed Nov 26, 2003 8:38 am
hi
I'm trying to get my head round regular expressions - i've got ones that will remove every non- a-z or 1-9 character but what i'm trying to do is make one for taking the extnsions off file names, so that
"this is my great filename.doc"
would be just
"this is my great filename"
it would need to be something that would match for a "." and then remove everything after it (in case the extension isn't a standard 3-letter one)
can anyone help please ? I'm a real noob at this ...........
thanks
I'm trying to get my head round regular expressions - i've got ones that will remove every non- a-z or 1-9 character but what i'm trying to do is make one for taking the extnsions off file names, so that
"this is my great filename.doc"
would be just
"this is my great filename"
it would need to be something that would match for a "." and then remove everything after it (in case the extension isn't a standard 3-letter one)
can anyone help please ? I'm a real noob at this ...........
thanks