Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / tclgeek
set url "xxx@yyy.com"
regexp {([^@]+)@([^.]+).([a-z]+)} $url match match1
puts " Match....$match1"
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How to get the total number of values in an array?
Where php basically used?
How to create and destroy cookies in php?
Is php required for wordpress?
What is php key?
Why do you need to filter out empty files?
What is the use of final class in php?
Can you define an argument as a reference type?
Write logic to print Floyd's triangle in PHP?
What is a persistence cookie?
How can I learn php fast?
What is regular expression in php?
Why are sessions used?
Tell me how to execute an sql query? How to fetch its result?
Can we set session value in javascript?