A RexQuestion is a simple subclass of Question for parsing answers with regular expressions.
class
RexQuestion : Question
Superclass Tree (in declaration order)
RexQuestion
Question
object
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
answerFunc
answerPat
Inherited from Question
:
answerTemplate
priority
Summary of Methods
construct
parseAnswer
Properties
the callback to invoke on answering
the regular expression pattern to match
Methods
Create - 'pat' is the regular expression pattern, as either a string or a RexPattern object. We'll parse an answer simply by matching it against the regular expression; if we match, we'll take it as an answer. 'func' is a callback function that we'll call to carry out the action of answering the question. We'll invoke this with one argument giving the literal text of the input.
Adv3Lite Library Reference Manual
Generated on 03/07/2024 from adv3Lite version 2.1