i wanted to make a filter on the field title. i want to get all titles with a simple bracket at the end of the title , so that i can remove it with a single step with the code regexp (.+?)
Sorry, i haven't done the filter before. i pressed F3 and got filter at the bottom of the mp3tag. there i entered the code as suggested by you. then .. what... should i do? I pressed enter. nothing happen. what should i do to get the filtered result?
Sorry, i haven't done the filter before. i pressed F3 and got filter at the bottom of the mp3tag. there i entered the code as suggested by you. then .. what... should i do? I pressed enter. nothing happen. what should i do to get the filtered result?
YES. i have got it. there is some mistake in your code. it does not work whereas the one suggested by steoyehero is working %title% MATCHES "\s([^(]+)$" when i enter the code in the filter field i got the respective records.
%title% MATCHES "\s([^(]+)$"
%_bitrate% GREATER 180
this also produces the result.
My suggestion is is to use a filter the exact same as your regular expression.
That way you activate the filter and the same reg expression that can be used for the replace. This way you get a complete view of all the files you're about to affect.
No point using a filter when it doesn't truly reflect the changes you're about to make.
The problem with the one ohrenkino posted was it needed a backslash before the (. As ( is used for something else in reg exp you need the \ to tell it that it's a (
%title% MATCHES ")$"
This works but I wouldn't recommend this as you'll be using a different reg expresion in your action.
That filter string reads: space, escaped colon, colon, start of range, start of field, escaped colon colon to end of range, repeat that range, escaped colon, colon, end of field
Does that make sense?
What about
%title% MATCHES "\s:.+:$"
or
%title% HAS ::
thank you very much.I have no knowledge about the string components.
i have framed the filter string from Steveheor's previous example to find out brackets.
Now you have given two filter strings. both of them serve my purpose.
Think of regular expressions as something that compliments the string of text.
Each part has it's function,
These are just some examples.:
( matches (
) matches )
d matches d
f matches f
[a-z] matches any character from a to z
. matches any character
. matches a .
is a delimiter which is added to d for example, so d+ matches any number of d's one after each other.
and so on and so on. It's not difficult. Go to a regular expression website and test the reg exp there on a piece of text string.
If something doesn't work like ( or other characters, then 100% of the time it needs a \ before it. As you can see + has a different function in reg exp so + is needed to find a + in a text string.
I tried %_artist% MATCHES "^$" with no result. then i checked your suggestion. it also did not work. then I removed the underscore before the field name %artist% MATCHES "^$" and it worked!
thanks.
Now pls have a look at this. I have to find records with titles in the length of 30 to 40 characters including spaces between words. how to do that. i tried this but failed to get result.