Gaston Quirque
Posts: 7
Joined: 2011-09-01
|
|
Eugene Astafiev
Guest
|
Hi Gaston,
Sure. You just need to have a basic knowledge of regular expressions (see the System.Text.RegularExpressions namespace in .net framework for more information). For example:
private void adxSmartTag1_Recognize(object sender, ADXSmartTagRecognizeEventArgs e)
{
System.Text.RegularExpressions.Regex regExp = new Regex(@"^(d{3})sd{3}-d{4}$");
if (regExp.IsMatch(e.Text))
{
e.CommitProc(0, 2);
}
}
Please read more about regular expressions in the http://www.codeproject.com/KB/books/0672325802.aspx and http://msdn.microsoft.com/en-us/library/hs600312.aspx article in MSDN. |
|
Gaston Quirque
Posts: 7
Joined: 2011-09-01
|
Hi Eugene,
thanks for your reply.
My problem was not the regular expressions...my problem was how to tell the adxSmartTag1_Recognize event "ey! I've found a match!"...
The answer is in this line of code: e.CommitProc(...) ;)
Thank you!
Regards,
Gaston |
|