fixed regex in getDetails