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

How we can declare variable in php?

509


Do you know what is the function mysql_pconnect() usefull for?

499


How do you destroy a particular or all Sessions?

573


Tell me which programming language does php resemble to?

499


How error handling is being handled by php?

546






Define anonymous classes in php7?

555


How to convert one date format into another in php?

483


What is polymorphism in oop php?

504


How to calculate the length of a string?

553


Explain $_FILES Superglobal Array?

581


What is the function in PHP do not return a timestamp?

563


Explain about getters and setters in php?

530


Explain which cryptographic extension provide generation and verification of digital signatures?

524


What does pear stand for?

534


what is constructor

1065