parse_content_selector
docblock
parse_content_selector(s::String) -> Union{Symbol, Function}Parse a content selector string into a selector function or symbol.
Supported formats:
"function_name"-> Symbol(:function_name)"starts_with:prefix"-> starts_with(“prefix”)"ends_with:suffix"-> ends_with(“suffix”)"matches:pattern"-> matches(“pattern”)"contains:substring"-> contains(“substring”)
Example
sel = parse_content_selector("starts_with:process_")
sel(:process_data) # true
sym = parse_content_selector("my_function")
sym # :my_function