in reply to Basic Regular expression
$a =~/^(.+)(e|r)?(.*)$/; [download]
...it is unhealthy to remain near things that are in the process of blowing up. man page for WARP, by Larry Wall