fix connection regex