Colorado Springs police arrested a 27-year-old man Wednesday after he allegedly texted an underage girl for sex.

James Gaylor was arrested after police posed as the girl and arranged a meeting with him at a nearby convenience store. When Gaylor arrived to meet the girl, he was arrested.

The girl, a Doherty High School student, told police she didn't know the man and was at school when she received the texts.

Gaylor was arrested on suspicion of contributing to the delinquency of a minor, attempted sexual exploitation of a child and obscenity.