View Single Post
Old 12-16-2011, 11:37 AM   #1
ElfN
Enthusiast
ElfN began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2010
Device: Samsung SM-T290
Filename plugboard

I've got this:

{#stripped_title:re(([a-z]+|[A-Z]+|[0-9]+)\s+,)||}

And it works but it's SO not giving me what I want. It strips all but the last word or two of the title and includes apostrophes and commas, strips any trailing "s". Arg.

This is entirely because I don't know exactly what I'm doing. I program but the regex I'm used to using isn't Python and I'm having trouble making the mental switch-over.

I've got a stripped title that works great and I use this field in a number of places.

{title:re(^(A|The|An)\s+,)||}

With a \s+ (why is the "s" being escaped? Not a clue) and a comma. No clue what that's for either.

What I want is a the title with no spaces or punctuation. That's all.

Can someone help?

Thanks.

Nori
ElfN is offline   Reply With Quote