Working regular expression and int conversion for post item_id