[已解决]请教sqlite在dotnet中如何使用正则表达式

查看了sqlite的文档,它提供了regexp(a,b) match(a,b)函数,但未实现,如何在.net中应用,搜索了半天,没找到相关的资料,不知道园子时原朋友做过相关的事情,提点一下,困了一天了

几经波折,总算是解决了,呵呵,如下:
这可是我不传人的秘技哦,

 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5using System.Data.SQLite;
 6namespace DBSchema2Doc.OP
 7{
 8    class MyRegExp:SQLiteFunction
 9    {
10        public override object Invoke(object[] args)
11        {
12            return System.Text.RegularExpressions.Regex.IsMatch(Convert.ToString(args[1]), Convert.ToString(args[0]));
13        }

14    }

15}
原文地址:https://www.cnblogs.com/lexus/p/813251.html