I have this pattern for preg_match_all: /(<span[^>]*value=.?(\w*).?[^>]*annotation[^>]*>)(.*?)<\/span>/ that work for this text:
example<span id="Marky100120131906070" class="myMarkGen" value="247" name="annotation">logy.*-/+!\"·$%&/()=?¿hi </span>example
but this does not work in this case:
example<span id="Marky100120131906070" class="myMarkGen" value="247" name="annotation">logy.*-/+!\"
·$%&/()=?¿hi </span>example
Note that there is a line break
What is the pattern that would work in both cases, and that works regardless of the content of the span?I need the text in to span and the value of span
you can try it here
Plus Modifiers it will do: