"be consistent" | |
PerlMonks |
words wich ends with "f"by Anonymous Monk |
on Jun 19, 2008 at 15:12 UTC ( [id://692941]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi if i want to know the words wich begins with "f" this is my code: the result is "four fifth frog fred" this is correct. but if i want to know the words which ends with "f": using the code: i get all the string "four fifth two frog left leaf fred wolf" and it must be "leaf wolf". what is the right regex? also i want to know the words wich does not begin with "f" but have at least one "f" in the remainder of the word: the result "fifth two frog left leaf fred wolf" and it must be "left leaf wolf" can someone please give me a hint on the right regex here thanks
Back to
Seekers of Perl Wisdom
|
|