I have the following string in PHP:
<p> [#form id=1]</p>
What is the pattern for getting it? I tried this:
/\<p\>\s\[\#.+?.\]\s\<\/p\>/
But it does not work. Any idea?
I have the following string in PHP:
<p> [#form id=1]</p>
What is the pattern for getting it? I tried this:
/\<p\>\s\[\#.+?.\]\s\<\/p\>/
But it does not work. Any idea?
/\<p\>\s*\[\#.+?.\]\s*\<\/p\>/
You don't have space after ] , but regexp test for it