#K40027. Extract First Email Address
Extract First Email Address
Extract First Email Address
You are given a string \(S\) that may contain one or more email addresses. Your task is to extract the first valid email address from \(S\). An email address is defined by the following regular expression:
\( [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} \)
If no email address is found in \(S\), output No email found.
inputFormat
The input consists of a single line representing the string \(S\), which may contain email addresses.
outputFormat
Output the first email address found in \(S\). If there is no valid email found, print No email found.
## sampleMy email is test@example.com.
test@example.com