Is this even possible?

I want to have regex which will search by first character, and ignore prefix the if the exists

so let's say i want to search by t and i have list like this
the tom
the john
tom

the tom and tom should be returned

if i want to search by j
and i have list
the john
john

both should be returned