in reply to Re^2: regular expression ?!
in thread regular expression ?!

Sorry its me again. In may actual code it works as if ($_ =~s/BM*/XXXEX_BM/)

Replies are listed 'Best First'.
Re^4: regular expression ?!
by moritz (Cardinal) on May 05, 2009 at 12:52 UTC
    If you add a g modifier to the end of the substitution, it will substitute all occurrences. See perlretut for details.

    And beware, the regular expression doesn't do what you think it does - read the documentation to learn what the * does.