Scrape parent text WITHOUT child text?

I'm trying to scrape a table element (td) that usually contains just a Yes/No, but sometimes contains an annoying extra annotation. I don't want to scrape the annotation, but it is a child element of the td. How do I tell Webscraper to select the contents of the td but NOT the contents of its child (in this case a div element)?

Url: https://reports.aashe.org/institutions/raritan-valley-community-college-nj/report/2015-04-14/AC/curriculum/AC-8/

Sitemap:

{"_id":"parent-only-example","startUrl":["https://reports.aashe.org/institutions/raritan-valley-community-college-nj/report/2015-04-14/AC/curriculum/AC-8/"],"selectors":[{"id":"just-want-first-word","type":"SelectorText","parentSelectors":["_root"],"selector":"td:contains(\"Coordination, Planning & Governance\") + td","multiple":false,"regex":"","delay":0}]}

Hey, unfortunately you can't scrape the Yes/No on it's own, but you can use regex to get rid of anything after a white space if the Yes/No is always at the beginning, something like this: \w+

1 Like

You can also use this in the regex box: ^[^\t ]+
Which should get you the first word