Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / ren
set url "xxx@yyy.com"
regexp {([^@]+)@([^.]+).([a-z]+)} $url match
puts " Match....$match"
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to make a class in php?
Whether it is possible to share a single instance of a memcache between multiple php projects?
Tell me how can we define a variable accessible in functions of a php script?
What is magic quotes?
What does $this do in php?
What is static variable in php?
How many data types are there in php?
What the difference between the 'bitwise and' operator and the 'logical and' operator?
Explain what does the function get_magic_quotes_gpc() means?
Tell me what is use of in_array() function in php?
What is the difference between print() and echo()?
Is php a programming language?
What exactly is PHP?
What is the difference between == and === in php?
What is $_ env in php?