Author Topic: Results.RegEx: unexpected error  (Read 4611 times)

0 Members and 1 Guest are viewing this topic.

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Results.RegEx: unexpected error
« 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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Results.RegEx: unexpected error
« Reply #1 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
« Last Edit: January 04, 2015, 09:46:10 AM by nime5ter »

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: Results.RegEx: unexpected error
« Reply #2 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.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Results.RegEx: unexpected error
« Reply #3 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.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Results.RegEx: unexpected error
« Reply #4 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

TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: Results.RegEx: unexpected error
« Reply #5 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

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Results.RegEx: unexpected error
« Reply #6 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.

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: Results.RegEx: unexpected error
« Reply #7 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

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Results.RegEx: unexpected error
« Reply #8 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
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Results.RegEx: unexpected error
« Reply #9 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?

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Results.RegEx: unexpected error
« Reply #10 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.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

tn42

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 0
    • View Profile
Re: Results.RegEx: unexpected error
« Reply #11 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.