wpseek.com
A WordPress-centric search engine for devs and theme authors



get_shortcode_atts_regex › WordPress Function

Since4.4.0
Deprecatedn/a
get_shortcode_atts_regex ( No parameters )
Returns:
  • (string) The shortcode attribute regular expression.
Defined at:
Codex:

Retrieves the shortcode attributes regex.



Source

function get_shortcode_atts_regex() {
	return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/';
}