in reply to Regular Expression

Could you please show us the code that is failing? (And keep it short). Because /a$/i is supposed to match strings that end with "a\n". And that chomping removes the entire word doesn't make any sense. I think you made a mistake in your code, and are blaming the buildins for it.

Abigail