Good day.

There is such a line:

if preg_match("/href=/", $commentdata['comment_content']) { 

Triggering occurs by the presence in the text href = How to add here to also trigger another value, for example, src =

  • 2
    '~(?:href|src)=~' - Edward

1 answer 1

if preg_match ("/ href = | src = /", $ commentdata ['comment_content']) {