Regexp matching error 1

Regexp matching error 1

[SOLVED] RegExp Matching Error -1

Post by spoonwzd » May 3rd, 2018, 6:45 pm

Hoping someone can assist me with this.

I’m presenting a .txt file to the WebParser, but my expression isn’t working.

The .txt file contains the following information:

The expression works just fine in RainRegExp, but when adding it to my RainMeter skin I get a RegExp matching error.

Stuff I’ve tried:
• Rainmeter has been restarted
• I have tried serving the .txt file via a web server (IIS)
• I have tried accessing using a file share with file://
• I’ve tried putting the expression in quotes

Please help — I didn’t have that much hair to begin with as it is!

Re: RegExp Matching Error -1

Post by balala » May 3rd, 2018, 6:57 pm

Re: RegExp Matching Error -1

Post by spoonwzd » May 3rd, 2018, 7:03 pm

Thanks for your response.

Here’s the code so far:

Re: RegExp Matching Error -1

Post by balala » May 3rd, 2018, 7:20 pm

Re: RegExp Matching Error -1

Post by spoonwzd » May 3rd, 2018, 7:30 pm

The other meters were there, but i stripped them out to reduce the code down to the bare minimum so as to ease troubleshooting.

Adding Text=%1 doesn’t help, as it never actually gets data into the string index.

Restarting Rainmeter doesn’t help either. The log just spams:

Источник

Regexp matching error 1

Problem with WebParser: RegExp matching error (-1)

Post by Droyk » July 9th, 2015, 8:58 am

I ALREADY SEARCHED RAINMETER FORUM BUT I CAN’T FIND ANYTHING THAT IS RELATED TO THIS QUESTION

Hey Guys I Made An Rss Reader But I Can’t Run It Properly
And Rainmeter Log File Always Says

WebParser: RegExp matching error (-1)

i did all the thing RIGHT but my feed reader shows nothing ;(
AND I AM REALLY SORRY ABOUT MY GREAT ENGLISH I AM FROM JAPAN SO MY ENGLISH IS NOT THAT GREAT
here is my code

SOME IMPORTANT INFORMATION IS

i didn’t make this i just improve it a little bit and
i am a newbie here and so plz asks what an newbie knows

READ  Spring json error response

so what i improve is i added more substrings.
more MEASURE ITEMS AND LINKS

and one month ago it was running fine but now it is not even running
and then i thought i should fully uninstall it and do clean install of rainmeter
but that doesn’t work
now everytime i start this rss feed rainmeter log always shows WebParser: RegExp matching error (-1)

I Tried Two Different Type Of Regex

first i tried this

both didn’t work same error as before WebParser: RegExp matching error (-1)

it was just running fine a month ago but now it is not even working
and by the way my all other rss feed are working fine but it’s only for other websites

and only the kat.cr rss rainmeter feed is not working
and then i thought it could be the website problem but no all the other browser extensions feeds are working fine
so i really don’t what the problem is

And i tried jsmorley WebParser Tester

This WebParser Tester tester says there is no problem here is the proof

and i tried this jsmorley RainRegExp — Rainmeter Regular Expression tester
here is the proof

so can u plz tell me guys what really the problem is

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley » July 9th, 2015, 10:25 am

Not entirely sure, but it I suspect that site is doing some kind of browser detection, and can’t recognize the user agent string being sent by Rainmeter (and RainRegExp) or is otherwise trying to query the browser and can’t.

When I go to that site in my Chrome browser, it looks fine, but in RainRegExp or WebParser, I get just hideous gibberish returned from the site.

Some sites will do that to try and ensure that access is through a browser, as they want you to see the advertising on the site.

Not sure there is any easy solution for this.

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk » July 9th, 2015, 11:02 am

jsmorley wrote: Not entirely sure, but it I suspect that site is doing some kind of browser detection, and can’t recognize the user agent string being sent by Rainmeter (and RainRegExp).

My Chrome user agent string:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36

WebParser / RainRegExp user agent string:
Rainmeter WebParser plugin

When I go to that site in my Chrome browser, it looks fine, but in RainRegExp or WebParser, I get just hideous gibberish returned from the site.

Some sites will do that to try and ensure that access is through a browser, as they want you to see the advertising on the site.

Not sure there is any easy solution for this. The only thing that might work is using an external call to cURL so you can fake a user agent string of Chrome or Firefox or some such, and download the site for reading by WebParser. That would be a fairly big project.

Well i will do anything for that because i really want to see the rss feed for downloading the games
it’s too much of an problem everytime u want to see the rss u have to open the browser (it’s too annoying )
soo plz help me with this

READ  Internet connection port error

i know it will take your lot of time but plz i really want to get this thing work again
thanxxx

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley » July 9th, 2015, 11:17 am

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk » July 9th, 2015, 11:35 am

Actually utorrent have an rss feed reader
is there is any way we can see that through rainmeter

like this
http://jsmorley.deviantart.com/art/LuaTorrent-3-1-2-291523853

this is your utorrent rainmeter monitor skin
i think if we could read what utorrent have in their rss feed
we could fix our rainmeter skin right

plz say we can fix this by using this method

and another method is
we can fix this by desktop based rss feeder
http://www.rssowl.org/
only if we could read what desktop based rss feeder have
and we can show that information through our rainmeter skin

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley » July 9th, 2015, 11:39 am

No, uTorrent has nothing to do with this. The web-based interface for uTorrent that WebParser can access only lists the currently downloading torrents.

I’m sorry, but I’m walking away from this one. I don’t see any way to get WebParser to see that site properly, and that is as far as I am willing to go.

Re: Problem with WebParser: RegExp matching error (-1)

Post by Droyk » July 9th, 2015, 11:58 am

As i said there is another method too
if we could see the rss from desktop based reader
we could actually do this

this will only take your small amount of time plz
we just have to see how we can use the information of desktop based reader through our rainmeter rss feeder.

thats it thats really simple thing plz

Re: Problem with WebParser: RegExp matching error (-1)

Post by jsmorley » July 9th, 2015, 12:16 pm

So it looks like YahooAPIs is able to get the feed.

Источник

Regexp matching error 1

Post by cubeslice » December 15th, 2020, 3:12 pm

Re: WebParser RegExp matching error (-1)

Post by jsmorley » December 15th, 2020, 3:19 pm

You need to find out what encoding is being used for the text file. WebParser by default expects results to be returned as UTF-8, and it is possible, in fact likely, that the text file you are reading is encoded as UTF-16 Little Endian.

You can trying adding:

To the WebParser «parent» measure, and see it that corrects the problem.

Re: WebParser RegExp matching error (-1)

Post by cubeslice » December 16th, 2020, 2:52 am

jsmorley wrote: ↑ December 15th, 2020, 3:19 pm You need to find out what encoding is being used for the text file. WebParser by default expects results to be returned as UTF-8, and it is possible, in fact likely, that the text file you are reading is encoded as UTF-16 Little Endian.

READ  Sony kdl 49wf804 прошивка

You can trying adding:

To the WebParser «parent» measure, and see if that corrects the problem.

Re: WebParser RegExp matching error (-1)

Post by jsmorley » December 16th, 2020, 11:25 am

All skin .ini and .inc files should be encoded as UTF-16 Little Endian. WebParser is looking for UTF-8, as it assumes you are getting data from the web, but pretty much everything else in Rainmeter should be UTF-16.

Re: WebParser RegExp matching error (-1)

Post by cubeslice » December 16th, 2020, 12:51 pm

jsmorley wrote: ↑ December 16th, 2020, 11:25 am All skin .ini and .inc files should be encoded as UTF-16 Little Endian. WebParser is looking for UTF-8, as it assumes you are getting data from the web, but pretty much everything else in Rainmeter should be UTF-16.

Re: WebParser RegExp matching error (-1)

Post by jsmorley » December 16th, 2020, 12:53 pm

Источник

Regexp matching error 1

Post by feliz4785 » September 7th, 2016, 6:47 pm

My Gnometer Weather Skin Suddenly it stops working.

«RegExp matching error(-1)»

What’s the problem?
Please help me!

Re: Gnometer Weather RegExp matching error

Post by fonpaolo » September 7th, 2016, 7:07 pm

Re: Gnometer Weather RegExp matching error

Post by balala » September 7th, 2016, 7:19 pm

First make sure that in the skins file you really have the posted URL. When I downloaded the Gnometer package, there had been another URL: Url=http://xml.weather.com/weather/local/#weather.Zip#?cc=*&unit=#weather.Unit#&dayf=3 . With that, the skin won’t work any more (if I’m not wrong that’s an old URL, used some time ago).
If that doesn’t help, open the Gnometer\SETTINGS\Variables.inc file and check the weather.Zip variable. What value has it? Because with the initially existing FIXX0002 code, the skin didn’t work for me. When I replaced that code with mine correct code, the skin started to work (as if the original code would have been invalid).

EDIT: Sorry fonpaolo, you beat me.

Re: Gnometer Weather RegExp matching error

Post by fonpaolo » September 7th, 2016, 7:37 pm

Well. once in a life it can happen.

There’s only a reason I was so fast, I was trying to figure out why my weather skin doesn’t work anymore, and I know it wasn’t my fault.

Re: Gnometer Weather RegExp matching error

Post by balala » September 7th, 2016, 8:09 pm

Re: Gnometer Weather RegExp matching error

Post by fonpaolo » September 7th, 2016, 8:33 pm

No, not for the moment, seems that the «fault» is from weather.com, maybe only a momentaneous glitch, maybe some new changes in the feeds.

It’s hilarious that I receive emails from weather.com (not very often) where they ask me to try or comment some their new features.
. but I don’t think they even want to listen us, Rainmeter users, and then release at least a stable source to be used in our skins obtained with a lot of hard work.

Re: Gnometer Weather RegExp matching error

Post by balala » September 8th, 2016, 6:10 am

Источник

Smartadm.ru