MCPcopy Create free account
hub / github.com/clips/pattern / _match_css_class

Function _match_css_class

pattern/web/soup/BeautifulSoup.py:107–109  ·  view source on GitHub ↗

Build a RE to match the given CSS class.

(str)

Source from the content-addressed store, hash-verified

105DEFAULT_OUTPUT_ENCODING = "utf-8"
106
107def _match_css_class(str):
108 """Build a RE to match the given CSS class."""
109 return re.compile(r"(^|.*\s)%s($|\s)" % str)
110
111# First, the classes that represent markup elements.
112

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…