WordPress Version: 6.1
/**
* Retrieves the shortcode attributes regex.
*
* @since 4.4.0
*
* @return string The shortcode attribute regular expression.
*/
function get_shortcode_atts_regex()
{
return '/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|\'([^\']*)\'(?:\s|$)|(\S+)(?:\s|$)/';
}