Perl

Check if the word electroencefalografista exists in a string

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

my $string = "The longest accepted word by RAE is: electroencefalografista";
if ($string =~ /electroencefalografista/) {
    print "Match!";
}