How to restrict regular expression to smaller capture

Viewed 76

Here's my text:

"A popular resource for the Christian community in the Asheville area."
"I love the acting community in the Orange County area."

I'd like to capture "Asheville" and "Orange County". How can I start capturing from the closest "the" to "area"?

Here's my regex:

/the (.+?) area/

They capture:

"Christian community in the Asheville"
"acting community in the Orange County"
3 Answers
Related