i need a little help to with this issue:
I have a string wich contains shortcodes like
[shortcode data="1" data2="2"]
How I can extract with regex? without wordpress system?
Thanks in advance.
Where is this string located ? I know you wrote "without wordpress system" , but WordPress has a function get shortcode regex
If you really want to avoid it for some reason, the following example might help you :