Hi Hauke,
The regex you suggested works for me and qualifies for all other test cases.
Correct me if I am wrong but when you used the operator "?:", this is used to form a non-capturing group so that \s+ is explicitly not captured while checking for regex and this makes it a match to the last test case and matches that for execution right?
Thanks!
In reply to Re^4: Perl program to look into the phone directory and in case of a match, print the name along with the number
by dk27
in thread Perl program to look into the phone directory and in case of a match, print the name along with the number
by dk27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |