Test, validate and match regular expressions
This regex matches HTML class attributes that contain 'share' as one of the class names. It handles cases where 'share' is the only class or is preceded/followed by other classes separated by whitespace. This is useful for finding social sharing buttons or elements in web scraping and DOM manipulation tasks.