re = /\\s{1,}(male)\\.$/gi \"A girl is a female, and a boy is a male.\".match(re);
this results in \" male.\"
what i want is \"male\"
You need to take out the 'g' option on your regexp:
re = /\s{1,}(male)\.$/i
yields
[" male.", "male"]