That is what you have to do. See perlretut and/or perlre.
This is not a code writing service where we will write code for you.
Maybe you might be interested in that /\w?/ will only match zero or one "word character". If you want to match one or more, you might want to use \w+. Again, now is a good time to learn about regular expressions.
In reply to Re^5: find one by one occurances
by Corion
in thread find one by one occurances
by Selvakumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |