($random_char) = "string" =~ /your_magic_here/s;