$term = 'cat'; $text =~ s/\b($term)\b/$1/i; #### $term = join '|', 'cat', 'Cat', 'dog', 'Dog';
## $term = join '|', 'cat', 'Cat', 'dog', 'Dog';