How can I apply regular expression to filter only
from the following string
Is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
or Without using regular expression and Dom is there anyways to get the same
That’s a shortcode and you can easily use the WordPress Shortcode API to handle those shortcodes:
In the
$atts
array you will have a list of all of your attributes from the video shortcode:$matches[0]
containsUse substring and indexOf
for example,