OK, trying to sort a file of movie titles.

This is where I got to:

Sort using pattern:
^(the|A|An|\d+)?\.?\s+?(.*)$

Given input like this:

All Quiet on the Western Front (1930)
05 In Washington (1943).avi
04. The Chimp (1932)
Almost.Famous (2000)
The 39 Steps (1935).avi
01 The Hound of the Baskervilles (1939)
The Gods Must Be Crazy
06 The Hoose-Gow (1929)
The Good, the Bad and the Ugly (1966)

I want to at least get to:

The 39 Steps (1935).avi
All Quiet on the Western Front (1930)
Almost.Famous (2000)
05 In Washington (1943).avi
04. The Chimp (1932)
06 The Hoose-Gow (1929)
01 The Hound of the Baskervilles (1939)
The Gods Must Be Crazy
The Good, the Bad and the Ugly (1966)

Which I thought the pattern above would do, but it doesn't

This would be ideal:

The 39 Steps (1935).avi
All Quiet on the Western Front (1930)
Almost.Famous (2000)
04. The Chimp (1932)
05 In Washington (1943).avi
The Gods Must Be Crazy
The Good, the Bad and the Ugly (1966)
06 The Hoose-Gow (1929)
01 The Hound of the Baskervilles (1939)


-- 
'You make us want what we can't have and what you give us is worth
nothing and what you take is everything and all there is left for us is
the cold hillside, and emptiness, and the laughter of the elves.'

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.

Reply via email to