added regex supplant function from twitter