Property Gatherers right arrow Boolean Text Gatherers

Boolean Text Gatherers return True or False depending on whether the element's text or HTML contains the given Expression. This is particularly useful to define arbitrary distinctions among elements according to their text content. For instance, creating a gatherer with price as the Expression, and then creating a kind using only elements that contain the word price in their text will produce a kind that only selects elements that contain this word. In fact, if you look at your kind's definition you'll see that the Value of the Property with your gatherer's name (it will have the JS_ prefix prepended to its name) is set to True. Similarly, creating a kind using only elements that don't contain the word price in their text will give you a kind that selects only elements that don't contain this word. In this case, the Value of your gatherer's Property will be False in the kind's definition.

Using Regular Expressions by checking the Use Regular Expressions check box greatly expands the pattern matching possibilities. For instance, using ^Price as the Expression will return True only for elements whose text starts with Price, and using ^[\d,\.]+$ will return True for elements whose text contains only numbers, commas or dots. There are many Regular Expressions tutorials and testers on the web that can quickly help you build the pattern you need.