Write a regular expression to get the value xxx from the
string 'xxx@yyy.com'
Answer Posted / tclgeek.com
set url "xxx@yyy.com"
regexp {(\w+)@.+\.com} $url match
puts "Match is--->$match"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the 3 scope levels available in php and how would you define them?
How to make a class in php?
What are the advantages of oops in php?
How many escape sequences are recognized in double-quoted strings?
How many types of arrays are there in php?
How to calculate the length of a string?
What is the basic function to search files for lines (or other units of text) that contain a pattern.
How can we change the value of a constant?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
What does a special set of tags do in php?
Is laravel better than codeigniter?
What is the difference between laravel and php?
Is set in php?
What are properties in php?
What's the output of the ucwords function in this example?