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
Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?
How can you upload a file using php?
What is compact function php?
Is php better than java?
Write a query to find the 2nd highest salary of an employee from the employee table?
Explain what is the use of "echo" in php?
How is it possible to propagate a session id?
What are headers in php?
Tell me what is mean by an associative array?
Explain preg_Match and preg_replace?
What is html used for?
Which is better mysql or sql?
How long should a session last?
How can I learn php fast?
How to stop the execution of php script?