Page 1 of 1

format text

Posted: Wed Jan 20, 2010 11:38 am
by inner
Hey there , i downloaded today the trial version of TextPad...before i purchase it i just want to know if i can edit some playlists and export them in the format i want.
as im new to this type of editing i will post an example...maybe somebody can give me a hand...

Arssura - - Cine Sunt dance bun(2009)good
AISA & DJ YAANG - Ready To Go
Chris Cornell & Timbaland - Part of me
Animal X - Sambure de drac
....................

i want to know if there is a way to extract from my list only first name until the - , so the playlist will look like this:

Arssura
AISA & DJ YAAN
Chris Cornell & Timbaland
Animal X

Thanks...and looking forward for some tips

Posted: Wed Jan 20, 2010 1:09 pm
by ben_josephs
Find what: _-_.* [Replace the underscores with spaces]
Replace with: [nothing]

[X] Regular expression

Replace All
The search expression is a regular expression. It matches certain sequences of characters in your text.

Most characters in regular expressions match themselves: a space means "match a space" and a hyphen means "match a hyphen". Dot (.) is special in regular expressions: it means "match any single character (except a newline)". Star (*) is also special: it means "match whatever the preceding regular expression matched any number (possibly zero) of times". So .* means "match any number of characters (up to the end of the line), whatever they are". So the entire regular expression _-_.* (with the the underscores replaced with spaces) means "match a space-hyphen-space sequence followed by everything up to the end of the line.

Posted: Wed Jan 20, 2010 1:55 pm
by inner
thanks a lot m8 .... but how can i do for the names after the - ... so i can get a column like this:

Cine Sunt dance bun
Ready To Go
Part of me
Sambure de drac

if you can help me out i would really appreciate

Thanks again

Posted: Wed Jan 20, 2010 2:22 pm
by ben_josephs
Find what: .*_-_ [Replace the underscores with spaces]
Replace with: [nothing]

[X] Regular expression

Replace All

Posted: Wed Jan 20, 2010 2:36 pm
by inner
thanks ... you helped me out a lot