I'm trying to set up my rss feeds, but i can't get it to work.
First off.
? to match any single character: i guess this means it'll match any single letter i chose. ie. tv sho?w? it'll then download everything that contains a w.
* to match zero or more of any character: i don't even know how to interpret this. It's either zero match or more than zero.
whitespaces counts as AND operator: so that's just normal space between words that means AND.
Anyone who would mind explaining how this works?
p.s. google didn't find any tutorials.
Need an RSS tutorial
Re: Need an RSS tutorial
The first ? in tv sho?w? will match ANY character that follows a string of 'tv sho' and precedes a 'w' BUT the '?' following becomes a repetition modifier matching the preceding character '0 or 1 times' which then makes the 'w' optional in the regular expression, so the pattern will match "tv shot", "tv shog", "tv shon", "tv shop" etc with OR without the 'w'.
The '*' is also a 'repetition modifier' and it means the character or character group preceding it will be matched 1 or more times eg:
0* will match 0, 00, 0000 or 00000000000000000000000000. * is most often seen preceding a . character (dot or period) to match all characters in the string
eg: .*$ which will match any character (other than a new line) from the current position in the string to the end of the string.
The Boost RegEx library used for qBT is POSIX compliant so this http://www.regular-expressions.info/tutorial.html should help, though fair warning, learning regular expressions can be mental torture until it 'clicks'.
The '*' is also a 'repetition modifier' and it means the character or character group preceding it will be matched 1 or more times eg:
0* will match 0, 00, 0000 or 00000000000000000000000000. * is most often seen preceding a . character (dot or period) to match all characters in the string
eg: .*$ which will match any character (other than a new line) from the current position in the string to the end of the string.
The Boost RegEx library used for qBT is POSIX compliant so this http://www.regular-expressions.info/tutorial.html should help, though fair warning, learning regular expressions can be mental torture until it 'clicks'.
Re: Need an RSS tutorial
So. if we have two tv shows.
game of thrones (we all know that one) & game of qbit. By using ? we can watch the feed for both shows by using 1 rule.
game of? which will match anything that begins with "game of" and whatever comes after. So if later on game of donkeys is introduced that too will be included in this rule.
This means ? nullifies whatever you add after, so creating "game of? t" will nullify the t as it's watching for "game of" and whatever comes after that.
* has me puzzled, i'm not sure how one could use this.
game of* will make it watch for game ofofofofofof as * makes it repeat the group before it into eternity
But if we use it before either letters or words it'll try to match whatever comes after until the end of the string. So if you're looking for anything that contains "game of" you add *game of
Which means it would work like game of?
Did i get any of that right ?
Are there any of the wildcards and it's rules used in utorrent that can be used in qbit ?
p.s. I looked through that site for about 10 min, i'm not sure, but i think it punched me in the face.
game of thrones (we all know that one) & game of qbit. By using ? we can watch the feed for both shows by using 1 rule.
game of? which will match anything that begins with "game of" and whatever comes after. So if later on game of donkeys is introduced that too will be included in this rule.
This means ? nullifies whatever you add after, so creating "game of? t" will nullify the t as it's watching for "game of" and whatever comes after that.
* has me puzzled, i'm not sure how one could use this.
game of* will make it watch for game ofofofofofof as * makes it repeat the group before it into eternity
But if we use it before either letters or words it'll try to match whatever comes after until the end of the string. So if you're looking for anything that contains "game of" you add *game of
Which means it would work like game of?
Did i get any of that right ?
Are there any of the wildcards and it's rules used in utorrent that can be used in qbit ?
p.s. I looked through that site for about 10 min, i'm not sure, but i think it punched me in the face.
Re: Need an RSS tutorial
I'm sure, learning regular expressions is like being punched in the face until you get it. Then you wonder why it was so hard.... at least that's what I've heard, after years dealing with RE I still feel like I've been punched in the face...
Re: Need an RSS tutorial
Which makes you wonder why no one has made a tutorial for the common foe.