Example of grabbing emails
Written by: webDOMinator 1 year and 8 months ago
This is a couple examples of using the new regex libraries and functionalities:
Code
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./Gather emails to the list
regexgatherQuick Reference for "regexgather"
Click on command to see examples & comments
Program Level Commands
Usage: regexgatherQuick Reference for "gather"
Click on command to see examples & comments
Program Level Commands
Usage: gather
Description: Gathers all possible items to all used lists. This command will gather from one page only To gather multiple pages, use autogather.:regular-expression
Description: Matches any regular-expression that is on the currently loaded web page in the browser and adds it to the information list. This function will check for duplicates within the list as it gathers.:regex.emails
Code
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./Access different emails from the page
echoQuick Reference for "echo"
Click on command to see examples & comments
Script Level Commands
Usage: echo:statement
Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:regex.email.1
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./the second email match
echoQuick Reference for "echo"
Click on command to see examples & comments
Script Level Commands
Usage: echo:statement
Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:regex.email.2
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./these can be put into other variables.
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:message=is your email ^regex.email.1^?
Code
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./creating a regular expression that's not from the library
regexQuick Reference for "regex"
Click on command to see examples & comments
Regular Expression Commands
Usage: regex:handle=pattern
Description: Creates a new regular expression matcher object which matches information on the page using pattern. There are some set regular expression handles which already exist in the libfolder, like regex.email, so these do not need to be declared, they can just be used.:userid=_([0-9]{5,6,7})_
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:firstuserid=regex.userid.1
/Quick Reference for "/"
Click on command to see examples & comments
String Concatenation & Math Expressions
Usage: expresson1/expression2
Description: Divides expression1 by expression2./if you want to save this to the library for later use
saveregexQuick Reference for "saveregex"
Click on command to see examples & comments
Regular Expression Commands
Usage: saveregexQuick Reference for "regex"
Click on command to see examples & comments
Regular Expression Commands
Usage: regex:handle=pattern
Description: Creates a new regular expression matcher object which matches information on the page using pattern. There are some set regular expression handles which already exist in the libfolder, like regex.email, so these do not need to be declared, they can just be used.:handle[:filename]
Description: Saves the regular expression specified by handle to the regex library. Anything in the regex library can be used later or even in a new instance of webDOM without having to declare it again.:userid
The regular expression system allows you to easily access sub-matches of matches as well.
Code
regexQuick Reference for "regex"
Click on command to see examples & comments
Regular Expression Commands
Usage: regex:handle=pattern
Description: Creates a new regular expression matcher object which matches information on the page using pattern. There are some set regular expression handles which already exist in the libfolder, like regex.email, so these do not need to be declared, they can just be used.:address=^([0-9]+)\b(\w)(ave|st|street|place|plc)([a-zA-Z ]),([a-zA-Z ]) ([0-9](5})$
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:streetnum=regex.address.1.1
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:street=regex.address.1.2
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:streettype=regex.address.1.3
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:city=regex.address.1.4
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:state=regex.address.1.5
varQuick Reference for "var"
Click on command to see examples & comments
Variable Setting Commands
Usage: var:variable-name = expression
Description: Sets the variable specified variable-name to expression. Expression can be any concatenated string, literal text, or Mathematical expression, and can include other variables, DOM elements, or webDOM settings.:zip=regex.address.1.6
echoQuick Reference for "echo"
Click on command to see examples & comments
Script Level Commands
Usage: echo:statement
Description: Echoes a statement to the status output. The statement can be a literal string, or a concatenated string.:var.streetnum^ ^var.street^ ^var.streettype