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

Answer Posted / arun

set chk "xxx@yyy.com"

if {[regexp {([a-z]+)} $chk match one ]} {

puts $one
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is session id stored?

671


How to submit form without a submit button.

693


Is php closing tag necessary?

707


What is zend studio for?

688


Tell me how to retrieve a cookie value?

680






How a variable is declared in php?

676


Describe PHP error and logging information?

707


What are the uses of php language?

696


What is the meaning of "enctype= multipart/form-data" ?

681


What does mysqli_query return?

673


How do you check if a variable has not been set in php?

661


Tools used for drawing er diagrams?

702


How do I find out the number of parameters passed into function9?

691


What is file upload?

750


Write down the benefits of php7?

782