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 is final class and final method in php?
Which is the dependent variable?
Are php sessions secure?
When to use single quotes, double quotes, and backticks?
Tell me what is the difference between the functions strstr() and stristr()?
Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.
Does cors prevent csrf?
What is strcmp?
Which is correct about mysqli and pdo?
Write a program to upload a file in php?
How to stop the execution of php script?
> symbol is used to redirect the output of a command. State Whether True or False?
What is escape data in php?
How to connect to mysql from a php script?
What does sign mean php?