To capture a match in $1, you need to stick it between ()s; your regexp should be:
/^([a-zA-Z]+)$/ [download]
the lowliest monk
In reply to Re: A memory problem? by tlm in thread A memory problem? by DDH