Home > Article > Backend Development > Find out how these two regular expressions are combined.
|<[^>]+>(.*)[^>]+>|U|
/?logo).>/
How to merge these two?
|<[^>]+>(.*)[^>]+>|U|
/?logo).>/
How to merge these two?
Regular is not the logic of 1+1=2. Different regulars need to be written according to different needs. Do you want to match both the first one and the second one?
<code>/<img(?!.?logo).>|(<[^>]+>(.*)</[^>]+>|U)/</code>