Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Regex helpby Anonymous Monk |
on Dec 11, 2013 at 07:01 UTC ( [id://1066550]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi all, In the code below, I'm trying to match and capture a small letter character that is flanked by exactly 4 capital letters on its left and right respectively. My regex captures the letter "s" on Line 1 (at position 12) and at Line 2, it captures only the letter "c" (position 6) but not "f" (position 11).
How do I modify my code to match the "f" on the second line that is also flanked by exactly 4 capital letters on its side? Thanks in anticipation!
Back to
Seekers of Perl Wisdom
|
|