在我的"domains" MySQL表中,我有一个列"domain_name",其中包含域名,例如
example.com, example.com.au, example.org, example.net, domain.com, etc.
我有一个搜索文本框和一些带有顶级域(TLD)的复选框。
我想执行一个搜索查询,根据在search textbox中输入的内容和检查的TLD,从上面的表格中获取域。
我知道我可以在以下查询的帮助下,根据在文本框中键入的一些字符来搜索域名:
SELECT * FROM domains WHERE domain_name LIK
我试图验证用户输入的子域是否有效,但是不管我传入什么,它都是无效的。我知道regex是可以的,所以问题是我的"if“逻辑,但是我对shell/bash还不熟悉。
#!/bin/bash
#
echo Enter the subdomain\'s name to configure.
read SUBDOMAIN
if [[ ! $SUBDOMAIN =~ [A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])? ]]; then
echo "$SUBDOMAIN is not a valid domain"
fi
示
我有下面的robots.txt
User-Agent: *
Disallow:
User-Agent: Googlebot
Allow: /
我上周做了这个改变,当我在谷歌上搜索我的域名时,我仍然可以得到A description for this result is not available because of this site's robots.txt。我做错了什么吗?谷歌每隔多长时间进入一个域名?
我对regex的解压器有问题,这是我的regex
val regex = """(some\/params\/results\/\b[A-Z]{3}\/[A-Z]{3}\b\/)*""".r
当我尝试这样做时:
val regex(res) = "some/params/results/XXX/YYY/2016-05-09/2016-05-18/1/0/0"
我得到了一个:
some/params/results/XXX/YYY/2016-05-09/2016-05-18/1/0/0 (of class java.lang.Str
文件权限属性中的最后一个点意味着什么?
me@ubuntu:~$ ls -l
total 8
drwxr-xr-x 4 me me 4096 Dec 21 13:14 snap
drwxr-xr-x. 14 me docker 4096 Dec 21 15:50 work
^
|--------- what does this dot means?
这是由Ubuntu18.04LTS在一个9p挂载分区上显示的。
Linux ubuntu 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28