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
What is isset in php?
What is the difference between $name and $$name?
What is difference between require_once(), require(), include()?
What is xss and csrf?
How can php and html interact?
List some of the features of php7.
How to set a page as a home page in a php based site?
Is php an object or array?
Define urlencode() and urldecode() used in php?
How do you count numbers in php?
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
Tell me how to set a page as a home page in a php based site?
How to get number of days between two given dates using PHP?
How to access a specific character in a string?
Which parts of php are case sensitive?