For example, given the sentence:
"... interest rates discouraged further buying interests_1 ..."
I need to match "interests_1" only.
If I use the regular expression:
/interest.*_[1-9]/
It will match the entire sentence because of the "interest" prior to "interests_1". How can I modify my reg. exp. to account for this? Do I need to use word boundaries somehow?
Thanks,
-bitwise
"... interest rates discouraged further buying interests_1 ..."
I need to match "interests_1" only.
If I use the regular expression:
/interest.*_[1-9]/
It will match the entire sentence because of the "interest" prior to "interests_1". How can I modify my reg. exp. to account for this? Do I need to use word boundaries somehow?
Thanks,
-bitwise