PDA

View Full Version : Hard time with [ and ]


Thorkx
2009-04-24, 05:32
Hey

I'm trying to get some info from my movie filenames in order to tag which are in french and which are in english. My movies are tagged with [FR] or [ENG]. I got around with a substring(ListItem.filename,FR) but I keep getting bad results with movie titles including "from". I'm trying to replace that line with substring(ListItem.filename,[FR]) but from what I understand, the [ ] are causing me alot of problems.

Any ideas? I'm guessing there's an easy solution involving something like $LBRACKET but I can't find it.

Thanks!

althekiller
2009-04-24, 05:44
Did you try escaping them? ie \[ and \].

Thorkx
2009-04-24, 05:49
Yeah but I'm guessing I have the syntax wrong. I tried substring(ListItem.filename,\[FR\]) , \[ + FR + \]...