Qustion about Wildget?

BeownReclise is a programmable web spider. Scan a web site and retrieve from it the information you need. You could scan a Real Estate web site and collect all of the agent addresses, phone numbers and emails, and place all this data into a tab delimited database file. Then import this data in your Excel application for example.
Post Reply
Kasper
Posts: 7
Joined: Mon Feb 20, 2012 9:14 am

Qustion about Wildget?

Post by Kasper » Mon Feb 27, 2012 6:43 am

Dear,

I noted that the function "Wildget is" very common in the free scripts but cannot find any inforamtion on the pdf manual, kindly advise.

Regards,

Kenneth

User avatar
Support
Site Admin
Posts: 1830
Joined: Sun Oct 02, 2011 10:49 am

Re: Qustion about Wildget?

Post by Support » Mon Feb 27, 2012 9:32 am

WildGet extract a match based on regular expression. The first parameter is the data you want to extract from, and the second parameter is the regular expression. If there is a match, it will return the match, otherwise it return nothing. If there are sub-match, they will be returned as a list, one per line.

x = '888-555-1212';
d = WildGet(x, '\d+');
The value of d is now...
888

d = WildGet(x, '(\d+)-(\d+)-(\d+)');
The value of d is now...
888
555
1212
Your support team.
http://SoftByteLabs.com

Kasper
Posts: 7
Joined: Mon Feb 20, 2012 9:14 am

Re: Question about Wildget?

Post by Kasper » Wed Feb 29, 2012 12:58 am

Thanks for your reply.

In addition to the (\d+) experssion, I found something like [^0-9], [^"] &[^0-9]*([0-9]{3})[^0-9]*([0-9]{3})[^0-9]*([0-9]{4}).... Kindly provide some source of reference such as websites for the RegEx usable in BrownReclues.

Regards

Kasper
Posts: 7
Joined: Mon Feb 20, 2012 9:14 am

Re: Question about Wildget?

Post by Kasper » Wed Feb 29, 2012 1:11 am

It seems to me that each computer language e.g. Java, Perl, .net or Phyton has their own regular expression. I wish to know which type should be most similar to SBL. Thanks.

User avatar
Support
Site Admin
Posts: 1830
Joined: Sun Oct 02, 2011 10:49 am

Re: Qustion about Wildget?

Post by Support » Wed Feb 29, 2012 1:17 am

I miised your previous post! BR uses Perl 5.0 compatible regular expressions. As long as you start your script with...

PerlRegEx = Yes;

Look at this link...
http://www.somacon.com/p127.php

and go down to Quick (Incomplete) Reference that's a good start.
Your support team.
http://SoftByteLabs.com

Post Reply