Hi,
I want to print the word that start with h(not case sensitive).
i tried with below code but its printing only one charater 'H'.
i dont understand the metacharaters and regular expressions much.
i understood that $1 will have the first match and $2 will have second match and so on.
please help me.
$line = "Hello how are you";
$line =~ m/\b(h*)/i;
print $1."\n";