Hi all. I have a string that exists of words. Some of these words have numbers in them. those are the words i am looking for. This is what i came up with:
$names = "1Petrus2 Joh4an Smit 2johnny99 Julius 789"; while($names =~ /\b(\w*\d+\w*)\b/g){ print "$1\n"; }
this looks to be working. Can you tell me if this is the correct way or are there better ways?
In reply to words with numbers in them by facebook
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |