Regular expression help?

A swapping-ground for Regular Expression syntax

Regular expression help?

Postby emusso » Mon Aug 27, 2007 8:50 pm

I have multiple files in this format:

xxx-xxx-xxx text text text.ext

What I would like is

xxx-xxx-xxx.ext

I want remove the extra information added to the filename (text text text)

Is this possible to fix with a regular expression?
emusso
 
Posts: 5
Joined: Wed Apr 18, 2007 2:22 pm

Re: Regular expression help?

Postby Stefan » Mon Aug 27, 2007 9:58 pm

emusso wrote:Is this possible to fix with a regular expression?

Surely.


Hint
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Postby KHL » Tue Aug 28, 2007 10:42 am

If all files start with xxx-xxx-xxx, you could also use Block 5 (Remove):
From 12 to 100.

Cheers
Karl-Heinz
KHL
 
Posts: 128
Joined: Wed Mar 09, 2005 8:59 pm
Location: Germany


Return to Regular Expressions