GrabzIt
Tools to Capture and Convert the Web

Extracting values from text using patterns

Some methods in GrabzIt's Web Scraper such as the Page.getValue method allows data to be extracted from text by specifying a pattern, which defines how to capture the desired part of the returned text. The the value to capture is indicated by the {{VALUE}} in the pattern. For example to capture the age from 'My age is 33.' the pattern 'My age is {{VALUE}}.' would be used.

Page.getTagValue({"tag":{"equals":"p"}}, 'My age is {{VALUE}}.');
Try all our premium features for free with a 7 day free trial. Then from $5.99 a month, unless cancelled.
  • More Captures
  • More Features
  • More API's
  • Bigger Scrapes
  • Bigger Screenshots
  • Bigger Everything
Start Free Trial