What would be the preg_match expression to get the text "exit" within the following tag?
<a href="/logout" role="menuitem">
<i class="icon-key"></i> Sair
</a>
What would be the preg_match expression to get the text "exit" within the following tag?
<a href="/logout" role="menuitem">
<i class="icon-key"></i> Sair
</a>
The expression would look like this:
<a href="\/logout" role="menuitem">[\s]+<i class="icon-key"><\/i> ([a-zA-Z]+)[\s]+<\/a>