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
What exactly is PHP?
What is difference between array_merge and array_combine?
How do you count numbers in php?
Is php a mvc?
Tell me is it possible to protect special characters in a query string?
How to remove values saved in the current session?
Is php a strongly typed language?
How can I convert ereg expressions to preg in php?
what is variable scope, which variables are accessible from where and what are "undefined variable" errors?
What is the difference between pop3 IMAP and MAPI?
What is the importance of php?
What are the different types of statements that are present in php?
Tell me whether it is possible to share a single instance of a memcache between multiple php projects?
How to call php function from javascript using ajax?
How do you check is php not empty?