Regular Expressions question


#1

I've tried to modify this from above to meet my requirements but it only half works...can anyone help?

I want to turn joe bloggs-song about you...into...song about you

I want to remove all text and white space before the - in the title field. So I simply swapped out the numeral group above for the letter group a-z

I created the following action...

Target_TITLE
Regular expression: ^\s*[a-z]+\s*-
Replace with:""

This works for one set of text but fails when it encounters more than one word prior to the -

so...

bloggs-song about me is correctly stripped to song about me...but...
joe bloggs-song about me fails to be stripped of anything at all?

Thanks in advance...
durrie :slight_smile:


#2

Regular expression: .+-\s*
Replace with:

a dot represents any character in regular expressions