I have an application that the user may specify a prompt... That may be in Regex type or in string type.
The user have a checkbox, if he check the checkbox the prompt var will be a string type if not check will be a Regex.
Then I need to be able to reference that later in the program.
so I am wondering how to define that...
Currently I have the following :
textbox1.text = "\[.*@.*\][\$|\#]" < --- that is a Regex
or it could be something like :
textbox1.text = "#$" < --- that would be a regular string...
and somewhere in my apps I need to use that info...
string userPrompt:
string rootPrompt;
if (userPromptIsText)
{
userPrompt = textBoxp4RegPrompt.Text.Trim();
}
else
{
// here how do I say that userprompt is a regex type?
}