Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

regex halp

Name: Anonymous 2009-01-17 0:49

Hey /prog/,
I'm trying to make a regex to grab file paths out of the txt file itunes gives as a playlist but I keep getting crap mixed in. What am I doing wrong?

(\s+)C:\\Files\\Music(.*\.\w{3})\n
Translation: More than one whitespace, file path, any number of non-newlines, a period, any 3 alphabet characters (the file extension), and a newline.

Name: Anonymous 2009-01-17 2:20

>>7
why not use a media player that doesn't suck ass? then you can just put the pathnames of your files in a text file one per line and play it like this:
mplayer playlist.txt

and you could copy them all to a single location like this:
for i in $(cat playlist.txt); cp $i /path/to/directory/you/want/to/put/the/files/in

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List