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

Answer Posted / 23626

set url "xxx@yyy.com"
regexp {[^@]+} $url M1
puts $M1

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of using php and mysql?

669


How to check if a string contains a character or word in php?

718


How to create and destroy cookies in php?

630


What is the latest version of php?

734


How many keywords are there in php?

810






How can we check the value of a given variable is a number?

789


Where are the persistent cookies stored on your computer?

738


How to send a cookie to the browser?

714


What is multidimensional array in php?

711


What is the importance of "method" attribute in a html form?

743


Write a statement to show the joining of multiple comparisons in php?

710


What is cms php?

664


Which php function will attach one file to another?

689


Tell me what are the encryption techniques in php?

643


What is php.ini & .htacess file?

714