I’m using the dcc.Input component with a regex on the pattern property. The input field turns red when the regex doesn’t match which is great. What I really want is to use the regex match status as an input for a callback. But I can’t figure out what property to use.
dbc.Input(
id='input-ip',
placeholder='Enter an ip address...',
type='text',
pattern=regex_ip_address,
),
@app.callback(Output('button-ok', 'disabled'),
[Input('input-ip', '???')])