Page 1 of 1
filter expression for quote (") only in the first postition?
Posted:
Fri Nov 05, 2010 11:54 am
by tgeery
I'm not a coder and I've played around a little trying to figure something out with no real success... what I'm after is a filter expression that would find a quote character (") only in the first position of the subject field and then exclude that post if the character were found. can anyone suggest something that would work?
Re: filter expression for quote (") only in the first postit
Posted:
Fri Nov 05, 2010 12:29 pm
by richy99
the ^ is the regex for begins with
so might try ^"
Re: filter expression for quote (") only in the first postit
Posted:
Fri Nov 05, 2010 12:32 pm
by tgeery
I'll give that a try. thanks.
Re: filter expression for quote (") only in the first postit
Posted:
Fri Nov 05, 2010 12:40 pm
by tgeery
had to use ^/" since the quote is a special character, I guess. the filter complained unless I used the / but that worked! simple! thanks for the suggestion!
Re: filter expression for quote (") only in the first postit
Posted:
Fri Nov 05, 2010 12:57 pm
by dexter
Backslash is what you use to escape characters. So it should be ^\" to anchor a quote to the beginning of the string.
Re: filter expression for quote (") only in the first postit
Posted:
Fri Nov 05, 2010 1:08 pm
by tgeery
dexter wrote:Backslash is what you use to escape characters. So it should be ^\" to anchor a quote to the beginning of the string.
you are, of course, correct! I typed "/" when I had actually used "\" in the filter. thanks for that correction.