Code:
alias gettime {
  if ($regex($1-,/posted ((?:\d+d )?(?:\d+h )?(?:\d+m )?(?:\d+s)?) ?(?:\[[\d/]+?\] )?ago/S)) {
    return $regml(1)
  }
}


This should match the [date] stuff and ignore it.
Used the //S modifier instead of $strip, rest is about the same...