$_ = "This is a teeeext for testting"; /(?.*)/ and print "'$+{char}' is matched pattern\n"; # This prints 'This is a teeeext for testting' is matched pattern