so i took a week off before school starts to prepare, part of which is fixing up my rainmeter skin with some school friendly additions. so i want a youtube feed, which i have successfully created. BUT! i want a previous and next button so i can view more than my 10 results without taking up more screen space. the problem is that in the RSS feed for page 1 results, the 'previous' link section is totally missing, while present in page 2 and beyond. im having trouble writing a regex to work for both conditions. i brushed up a bit on regex's last night and tried to get it working with some if/then/else tricks, but after 4 hours of tinkering, couldn't get it working properly. i plan on getting up to speed on rainmeter this week, as i've been uninvolved for a few months and have been super inspired to make some cool configs lately, but i dont have the time or desire to throw proficiency in regex in there as well. so i would greatly appreciate anyone's help with this. here is the concerned section (in context) on page 1 and page 2, followed by the relevent regex section sans my failed attempt at if/then/else :P
this does not include my if then else attempt because i didn't save it last night since i have an otherwise working regex. i had it in between the title and name captures.
Is it possible to link to the feed you are using?
Also, perhaps you could simply use multiple WebParser measures for the various pages, instead of trying to use If actions?
(I'm sort of guessing because I don't know quite how this Youtube feed is structured.)
JSMorely is, I think, the resident Regular Expression ninja, he might have some more helpful input for you.
thank you very much. it didnt quite work for me in rainregexp. when used alone it found the correct capture but assigned it stringindex 12, leaving all others blank. when i pasted it into my regex as above, it returns empty values for me when on page 1 or 2 but it has a correct stringindex. it does return something tho, which is better than i was able to achieve so thank you! . i added to it so that i can capture both the previous and next address's, and am pretty sure i did so correctly, i get 2 empty values now. but it still doesnt work correctly. thank you for the fast help guys.
so i messed with it a bit more last night, and still can't figure out why the captures arent being captured. the expression looks good and accurate to me, but of course im not skilled in regex, so i really don't know. if i use this expression by itself, i get results, but they are indexed as entry 17 and 18, all others are blank. if i use it with my existing expression, i seem to break it because i get empty strings returned. any more help would be greatly appreciated.
oh man! i guess a new day is all i needed :P. i woke up, took a look at it after i posted for more help, and fixed it! it seems i needed to bring the parser engine to just before where lookahead is to to query. this is what i did for anyone that may be curious. thanks for putting me in the right direction kaelri.
kylejdb wrote:so i took a week off before school starts to prepare, part of which is fixing up my rainmeter skin with some school friendly additions. so i want a youtube feed, which i have successfully created. BUT! i want a previous and next button so i can view more than my 10 results without taking up more screen space. the problem is that in the RSS feed for page 1 results, the 'previous' link section is totally missing, while present in page 2 and beyond. im having trouble writing a regex to work for both conditions. i brushed up a bit on regex's last night and tried to get it working with some if/then/else tricks, but after 4 hours of tinkering, couldn't get it working properly. i plan on getting up to speed on rainmeter this week, as i've been uninvolved for a few months and have been super inspired to make some cool configs lately, but i dont have the time or desire to throw proficiency in regex in there as well. so i would greatly appreciate anyone's help with this. here is the concerned section (in context) on page 1 and page 2, followed by the relevent regex section sans my failed attempt at if/then/else :P
this does not include my if then else attempt because i didn't save it last night since i have an otherwise working regex. i had it in between the title and name captures.
I for one am highly interested in a skin like this!! Any chance you'll be posting after you have it refined?? or should I divert from my many already diverted from projects and try to recreate your wheel on my own?? ;o)
Normally I'd just try things on my own, but RegX hurts my brain. ;op
"Do you want to be healed, now? Or would you prefer to bleed to death so I can try my hand at resurrection?"