Run Script
Code
Examples
Replacing Text
// Assume variable $numberOfComments has the value "12 comments"
// You want to extract just the numerical count
$numberOfComments = $numberOfComments.replace(" comments", "");
// $numberOfComments is now "12"Splitting Text
Extracting Page HTML
Execution context
Last updated