Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / arun
set chk "xxx@yyy.com"
if {[regexp {([a-z]+)} $chk match one ]} {
puts $one
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the syntax for ‘foreach’ loop with example.
How to set a value in session? How to remove data from a session?
What is the alternative structure for control structures?
What is session php?
How do I stop php artisan serve in windows?
How to calculate the length of a string?
How to remove the new line character from the end of a text line?
What are advantages of .htaccess?
What is strcmp () in php?
What is $_ env in php?
Do csrf tokens expire?
How to remove a file?
What does $_env means?
Explain me is multiple inheritance supported in php?
What's php?