我正在使用Gognitive.io创建我的移动应用程序
我启用了导航层次结构,该层次结构允许使用正则表达式匹配URL级别。
尝试了很多次后,我无法使用正则表达式(Regex)来匹配网址
我尝试匹配这样的水平
[
{
"regex": "https://example.com/?",
"level": 1
},
{
"regex": "https://example.com/perfumes/?",
"level": 2
},
{
"regex": "https://example.com/home-fragrances/?",
"level": 2
},
{
"regex": "https://example.com/offers/?",
"level": 2
},
{
"regex": "https://example.com/example-gifts/?",
"level": 2
},
{
"regex": "https://example.com/mubkhars/?",
"level": 2
},
{
"regex": "https://example.com/bukhour/?",
"level": 2
},
{
"regex": "https://example.com/mamoul/?",
"level": 2
},
{
"regex": "https://example.com/home-fragrances/?",
"level": 2
},
{
"regex": "https://example.com/personal-care/?",
"level": 2
},
{
"regex": "https://example.com/accessories/?",
"level": 2
},
{
"regex": "https://example.com/others/?",
"level": 2
},
{
"regex": "https://example.com/catalog/?",
"level": 2
}
]
请告诉我如何使URL的正则表达式完全匹配,因此,当用户单击页面内的链接时,它应在带有后退按钮的新Webview窗口中打开
我想正确匹配所有网址