Whole word matching with unexpected insertion in data
问题 I have string consider my $string = 'String need to be evaluated'; in $string I'm searching evaluated or any other word. problem is their may be insertion of some tags in string eg. Str<data>ing need to be eval<data>ua<data>ted which is unexpected. In this case how could I search for the words? here is the code I tried: my $string = 'Text to be evaluated'; my $string2 = "Te<data>xt need to be eval<data2>ua<data>ted"; # patten to match $pattern = "evaluated"; @b = split('',$pattern); for my $i