andream7 / apijson-db2

腾讯犀牛鸟开源人才培养计划 APIJSON 接入 db2
1 stars 1 forks source link

正则匹配合并到模糊搜索 #9

Open andream7 opened 3 years ago

andream7 commented 3 years ago

db2的正则匹配与模糊搜索使用的是相同的语法: 模糊搜索

{
    "User[]": {
        "count": 3,
        "User": {
            "name$": "%ap%"
        }
    }
}
正则匹配
{
    "User[]": {
        "count": 3,
        "User": {
            "name~": "^[0-9]%2B$"
        }
    }
}