str.indexOf to regex pattern to look for outside links