Difficulty getting information through Regular Expressions

1

I'm having trouble getting information using preg_match_all .

This information is being taken from an HTML code of an intranet page, but from the information I need, I am only able to collect one.

Here is a piece of code that contains the information:

        <img src="../../../img/prioridade_normal.png" style="vertical-align:middle;" width="20" height="20" align="top" border="0" title="Solicitação: Mudança de sala dentro da Gerência.&#13;Atribuição: Ponto de rede em cabeamento estruturado/Ativação/Instalação/">

                      </td>
                      <td width="20">

                            <img src="../../../img/alocacao_outro_profissional.png" style="vertical-align:middle;" width="20" height="20" align="top" border="0" title="Alocado para Tecnico 1" >

                      </td>
                      <th  scope="col" class="textoAtendimentoBranco" style="vertical-align:middle;">
                      <strong>19445/2015</strong>:2
                      </th>

The information I need is between the <title> tags, which I'm able to capture. What I'm not getting is collecting the information that is between <STRONG> </STRONG> .

The code I'm using to retrieve this information:

 preg_match_all("/title=\"(.*)/", $url, $conteudo);

My problem is how to do it to also retrieve what is between <STRONG> in the same regular expression that is being used for <title> .

    
asked by anonymous 02.07.2015 / 19:41

1 answer

1

Set to:

preg_match_all("/title=\"(.*)\"|<strong>(.*)</strong>/", $url, $conteudo);
    
02.07.2015 / 19:49