[rt-users] Scrip check body of email for text

2009-11-16 Thread Kevin Squire
I am modifying the scrip found at http://www.gossamer-threads.com/lists/rt/users/70038#70038 posted by gle...@- and could use some help The original, true if e-mail contains 'ok' $Transaction-Content =~ /\bok\s/i; I need to make it true IF a line (any line - 1st, 2nd, etc) starts

Re: [rt-users] Scrip check body of email for text

2009-11-16 Thread Gene LeDuc
Hi Kevin, Check out the /m modifier. This should match what you are specifying (which is different from your example, by the way): $Transaction-Content =~ /^RMA.*has been received$/m The /m tells perl to treat the string as multiple lines and the ^$ anchors match the beginning and end of