explorers' club

explorations in dev, science, sci-fi, games, and other fun stuff!

Regexp: SVN Commit log to short file names

Leave a comment

(\w*\.(as|mxml|css|xml))\b

Take a string copied and pasted from the SVN console in Flex Builder and extract only the file names (not the packages).

Sending        C:/Developer/Workspaces/Secondary Project  BULK REFACTOR/src/com/foo/controller/ExpenditureController.mxml  
Sending        C:/Developer/Workspaces/Secondary Project  BULK REFACTOR/src/com/foo/controller/ObligationsController.as
Transmitting file data ...    Committed revision 5729.

Matches should be:

ExpenditureConroller.mxml
ObligationsController.as

Here is the source for a small util app I made in 10 minutes (requires Flex4 SDK) – http://snipt.org/xgKk

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s