php - Simple regular expression to get text between <br/> and next <br/> -


I have a string that contains this (and other things):

  & Lt; B & gt; SINOPSIS: & lt; / P & gt; & Lt; Br / & gt; Text Text and Mewar Text ... Text & lt; Br / & gt;  

Let me first & lt; Br / & gt; To get the text between the tag requires a pre-play.

Thank you ...

Note: Add more & lt; Br / & gt; Tags. I need the first event.

I am using the PHPs preg_match () function.

This will work, be sure to enable multiline

There are other fancy ways to investigate more ...

Edit:

  preg_match ('! \ & Lt; br / / & gt; & Lt; br />>; 's, $ string);  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -