when i itterate through my array word by word looking for the word in brackets (example [word]), i can find the word but, if there is any puncuation attached (example [word].) it disappears when i replace the [word] with the new word. the pattern matching code i am using is:
please help me i need to be able to match just the bracketed words and leave the puncuation there.($word =~ /^\[/ && $word =~ /$\]/)
thank you
update (broquaint): added formatting
In reply to pattern matching by fasteddie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |