String:
<p>[element title="Some title"]Some random text[/element]
[element]Some random text[/element]</p>
Need to extract:
1) Element title (optional) - 'Some title'
2) Element content - 'Some Random Text'
http://regex101.com/r/eB0jE6/1
How to make title in the element optional?