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
What is csrf validation?
Why is node js better than php?
What is the use of @ in php?
How many types of array supported in php?
What is mysql_fetch_object?
Can we extend multiple classes in php?
Explain what is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What are the uses of explode() function?
What is php default argument?
What enctype is required for file uploads to work?
How to store the uploaded file to the final location?
What is the use of the function 'imagetypes()'?
What is difference between isset and empty in php?
What is the difference between $var and $$var?
What is mysqli_query?