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

Answer Posted / tclgeek.com

set url "xxx@yyy.com"
regexp {(\w+)@.+\.com} $url match
puts "Match is--->$match"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the $_GET variable of PHP?

735


What is the use of the function htmlentities?

789


What is difference between strstr() and stristr()?

674


What does php do?

685


Is server side a session?

642






How to submit form without a submit button.

693


What are the different types of statements that are present in php?

715


Tell me can the value of a constant change during the script's execution?

849


What does $_ post mean in php?

781


Do I need apache for php?

773


Why namespace is used in php?

712


Can you explain, when to use if-else if-else over switch statements?

698


What is constructors and destructors?

681


Why is overriding runtime?

716


How to call javascript function in php on button click?

665