Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'

Answer Posted / ren

set url "xxx@yyy.com"
regexp {([^@]+)@([^.]+).([a-z]+)} $url match
puts " Match....$match"

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Default syntax used in PHP?

760


What software is required to run php?

699


What is use of in_array() function in php?

717


Is empty in php?

685


What was the old name of php?

1135






Why we use get in php?

707


What is php sequence?

685


List some features of php that are deprecated in php7?

619


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable

1686


What is inheritance in php with example?

711


What is difference between put and post method in http?

667


What is a definer in mysql?

704


How to remove html tags from data in php?

752


What is use of header() function in php? What the limitation of header()?

646


What is the difference between require_once and require in php?

743