I'm trying to capture all the subject without the Re:'s :0 * ^Subject: *(Re: )*\/[^ ].* { SUBJECT=$MATCH } This doesn't work.