require "core"

value = true
core.update_user_code_restriction( item_id, "^\\d{7,10}$" )