VoxCommando

Help and Support (Using VoxCommando) => RegEx (Regular Expressions) => Topic started by: tn42 on January 04, 2015, 05:27:18 AM

Title: Results.RegEx: unexpected error
Post by: tn42 on January 04, 2015, 05:27:18 AM
Hi I am getting a "Results.regex: unexpected error"

when i do Scraping of http://www.blocket.se/stockholm?q=siemens&cg=0&w=2&st=s&ca=11&is=1&l=0&md=th&f=p

and then Results.RegEx of <title>(.*?)</title>


I have tried it in RegExTool.Open and it works fine there.

What am I doing wrong? What is happening. :o
Title: Re: Results.RegEx: unexpected error
Post by: jitterjames on January 04, 2015, 09:40:07 AM
Post your XML!!!

Also what version of vc are you using?

http://voxcommando.com/mediawiki/index.php?title=Getting_support#When_You_Ask
Title: Re: Results.RegEx: unexpected error
Post by: tn42 on January 04, 2015, 10:46:51 AM
okey, I can not explaine this.

But when I now ran the command (without modifying it) it worked like a charm? a WTF moment.

I would have posted the XML file but Its a bit tricky to get it out of the computer since it is not running on my local computer.
Title: Re: Results.RegEx: unexpected error
Post by: nime5ter on January 04, 2015, 10:59:31 AM
Computers are a mystery. Thanks for the update.

Usually that error occurs when there is incorrect syntax, such as an uneven number of opening ( or closing brackets ), or if we forget to actually define which character we want to match, eg. title>(*?)</title will throw an error.
Title: Re: Results.RegEx: unexpected error
Post by: nime5ter on January 04, 2015, 04:16:10 PM
By the way, based on your response, I'm not sure if you are aware of the most common way to share command xml. Just in case:

We didn't need you to export an xml file per se. Posting your command xml should generally be as simple as copy and paste. If you can access your command tree from your other computer, it should be possible to copy and then post the command xml:
http://voxcommando.com/mediawiki/index.php?title=XML_on_the_forum

Title: Re: Results.RegEx: unexpected error
Post by: tn42 on January 05, 2015, 03:36:34 AM
Hehe, yha I know, the probleme is that I need to connect to a remote computer, that is running a hyper-v client with VC on, that dose not have a browser.

And I can not copy text from a Hyper-V client over remote desktop  :P

Thats why Its a bit tricky to copy to and from VC in my case  ::dis
Title: Re: Results.RegEx: unexpected error
Post by: jitterjames on January 05, 2015, 09:19:37 AM
You must at least have internet explorer on the machine running VoxCommando?

You might want to try out VNC which supports copy/paste. I am sure there are many other remote desktop apps that do as well.
Title: Re: Results.RegEx: unexpected error
Post by: tn42 on January 05, 2015, 10:33:35 AM
Im running Remotedesktop over LAN, and yes I can use copy-past. but over hyper-V gen 1 copy-past is not possible.

I need to reinstall windows using Gen2 in order to get copy-past to work  :P

its kind of complicated  :P
Title: Re: Results.RegEx: unexpected error
Post by: nime5ter on January 05, 2015, 01:00:37 PM
As a W7 household we're not too familiar with Hyper V. Sounds like the usual Microsoftian hot mess. ("Why would anyone need to access the clipboard remotely?")  :biglaugh
Title: Re: Results.RegEx: unexpected error
Post by: jitterjames on January 05, 2015, 04:11:03 PM
May I ask why you are using hyper-V?  Is this so you can run Windows 7 on a Windows server machine?
Title: Re: Results.RegEx: unexpected error
Post by: nime5ter on January 05, 2015, 05:21:27 PM
Hi I am getting a "Results.regex: unexpected error"
...
What am I doing wrong? What is happening. :o

One thing I should have mentioned earlier is that it's often helpful to roll over the the error line when it appears in the history panel, as per the attached example.

The same information appears in VC's log file if you have logging enabled.
Title: Re: Results.RegEx: unexpected error
Post by: tn42 on January 05, 2015, 06:20:35 PM
May I ask why you are using hyper-V?  Is this so you can run Windows 7 on a Windows server machine?

Yes and no. It's for security.


One thing I should have mentioned earlier is that it's often helpful to roll over the the error line when it appears in the history panel, as per the attached example.

The same information appears in VC's log file if you have logging enabled.

Ow, that I did not know. Next time I get an error I will try it  :)  Thanx.