{"id":505,"date":"2023-09-16T15:39:16","date_gmt":"2023-09-16T07:39:16","guid":{"rendered":""},"modified":"2023-09-17T00:42:12","modified_gmt":"2023-09-16T16:42:12","slug":"%e6%ad%a3%e5%88%99%e8%a1%a8%e8%be%be%e5%bc%8f%e5%8c%b9%e9%85%8d%e5%a4%a7%e5%85%a8","status":"publish","type":"post","link":"https:\/\/mushiming.com\/505.html","title":{"rendered":"\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u5927\u5168"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u5de5\u4f5c\u4e2d\u4e0d\u65ad\u7684\u7528\u5230\u6b63\u5219\u5339\u914d , \u5148\u628a\u7528\u8fc7\u7684\u8bb0\u5f55\u4e0b\u6765 .
\u5f53\u7136 , \u6cbb\u6839\u8fd8\u662f\u5f97\u6cbb\u672c , \u62bd\u7a7a\u5b66\u4e60\u6b63\u5219 , \u80fd\u81ea\u5df1\u5199\u51fa\u6765\u7684\u6b63\u5219\u624d\u6709\u610f\u4e49 , \u800c\u4e0d\u662f\u7f51\u4e0aCV
\u6536\u7eb3 \u2193\u2193\u2193\u2193<\/strong><\/p>\n

1. \u5339\u914d\u4e2d\u6587\u5b57\u7b26<\/strong><\/p>\n

  [<\/span>\\u4e00-<\/span>\\u9fa5]<\/span>\n  ^<\/span>[<\/span>\\u4e00-<\/span>\\u9fa5]<\/span>{ \n   <\/span>0<\/span>,<\/span>}<\/span>$\n<\/code><\/pre>\n

2.\u5339\u914d\u53cc\u5b57\u8282\u5b57\u7b26(\u5305\u62ec\u6c49\u5b57\u5728\u5185)<\/strong><\/p>\n

  [<\/span>^<\/span>\\x00-<\/span>\\xff]<\/span>\n<\/code><\/pre>\n

3. \u5339\u914d\u7a7a\u767d\u884c<\/strong><\/p>\n

  \\n\\s*<\/span>\\r\n<\/code><\/pre>\n

4. \u5339\u914dEmail\u5730\u5740<\/strong><\/p>\n

 [<\/span>\\w!<\/span>#$%<\/span>&<\/span>'*+\/=?^_`{|}~-]+(?:\\.[\\w!#$%&'<\/span>*<\/span>+<\/span>\/=<\/span>?<\/span>^<\/span>_`{ \n   <\/span>|<\/span>}<\/span>~<\/span>-<\/span>]<\/span>+<\/span>)<\/span>*<\/span>@(<\/span>?<\/span>:<\/span>[<\/span>\\w]<\/span>(<\/span>?<\/span>:<\/span>[<\/span>\\w-<\/span>]<\/span>*<\/span>[<\/span>\\w]<\/span>)<\/span>?<\/span>\\.<\/span>)<\/span>+<\/span>[<\/span>\\w]<\/span>(<\/span>?<\/span>:<\/span>[<\/span>\\w-<\/span>]<\/span>*<\/span>[<\/span>\\w]<\/span>)<\/span>?<\/span>\n \n ^<\/span>\\w+<\/span>(<\/span>[<\/span>-<\/span>+<\/span>.<\/span>]<\/span>\\w+<\/span>)<\/span>*<\/span>@\\w+<\/span>(<\/span>[<\/span>-<\/span>.<\/span>]<\/span>\\w+<\/span>)<\/span>*<\/span>\\.<\/span>\\w+<\/span>(<\/span>[<\/span>-<\/span>.<\/span>]<\/span>\\w+<\/span>)<\/span>*<\/span>$\n<\/code><\/pre>\n

5.\u5339\u914d\u7f51\u5740URL<\/strong><\/p>\n

 [<\/span>a-<\/span>zA-<\/span>z]<\/span>+<\/span>:<\/span>\/<\/span>\/<\/span>[<\/span>^<\/span>\\s]<\/span>*<\/span>\n<\/code><\/pre>\n

6.\u5339\u914d\u56fd\u5185\u7535\u8bdd\u53f7\u7801<\/strong><\/p>\n

 \\d{ \n   <\/span>3<\/span>}<\/span>-<\/span>\\d{ \n   <\/span>8<\/span>}<\/span>|<\/span>\\d{ \n   <\/span>4<\/span>}<\/span>-<\/span>\\{ \n   <\/span>7<\/span>,<\/span>8<\/span>}<\/span>\n<\/code><\/pre>\n

7.\u5339\u914d18\u4f4d\u8eab\u4efd\u8bc1\u53f7<\/strong><\/p>\n

 ^<\/span>(<\/span>\\d{ \n   <\/span>6<\/span>}<\/span>)<\/span>(<\/span>\\d{ \n   <\/span>4<\/span>}<\/span>)<\/span>(<\/span>\\d{ \n   <\/span>2<\/span>}<\/span>)<\/span>(<\/span>\\d{ \n   <\/span>2<\/span>}<\/span>)<\/span>(<\/span>\\d{ \n   <\/span>3<\/span>}<\/span>)<\/span>(<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>|<\/span>X<\/span>)<\/span>$\n<\/code><\/pre>\n

8.\u5339\u914d\u6b63\u6574\u6570<\/strong><\/p>\n

\/^[0-9]*$\/<\/span>\n<\/code><\/pre>\n

9.\u5339\u914d\u6b63\u6574\u6570\u4e14\u4e0d\u4e3a0<\/strong><\/p>\n

\n<\/code><\/pre>\n

10.\u5339\u914d\u6b63\u6574\u6570<\/strong><\/p>\n

^<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>\\d*<\/span>$\n<\/code><\/pre>\n

11.\u5339\u914d\u53cd\u659c\u6760<\/strong><\/p>\n

\/\\\\\/g<\/span>\n\/\/\u5b57\u7b26\u4e32\u91cc\u7684\u5355\u4e2a\u53cd\u659c\u6760\u4e3a:\"\\\\\"<\/span>\n\/\/\u7b2c\u4e00\u4e2a\\\u4e3a\u8f6c\u4e49, \u7b2c\u4e8c\u4e2a\u624d\u662f\u771f\u7684\\<\/span>\n\/\/\u9644\u66ff\u6362\u5355\u4e2a\u53cd\u659c\u6760\u4e3a\u53cc\u53cd\u659c\u6760<\/span>\nstr.<\/span>replace<\/span>(<\/span>\/\\\\\/g<\/span>,<\/span>\"\\\\\\\\\"<\/span>)<\/span> \n<\/code><\/pre>\n

12.\u5339\u914d\u6574\u6570<\/strong><\/p>\n

^<\/span>-<\/span>?<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>\\d*<\/span>$\n<\/code><\/pre>\n

13.\u5339\u914d(\u5e74-\u6708-\u65e5)\u683c\u5f0f\u65e5\u671f<\/strong><\/p>\n

(<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>{ \n   <\/span>3<\/span>}<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>|<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>{ \n   <\/span>2<\/span>}<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>{ \n   <\/span>1<\/span>}<\/span>|<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>{ \n   <\/span>1<\/span>}<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>{ \n   <\/span>2<\/span>}<\/span>|<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>{ \n   <\/span>3<\/span>}<\/span>)<\/span>-<\/span>(<\/span>(<\/span>(<\/span>0<\/span>[<\/span>13578<\/span>]<\/span>|<\/span>1<\/span>[<\/span>02<\/span>]<\/span>)<\/span>-<\/span>(<\/span>0<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>|<\/span>[<\/span>12<\/span>]<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>|<\/span>3<\/span>[<\/span>01<\/span>]<\/span>)<\/span>)<\/span>|<\/span>(<\/span>(<\/span>0<\/span>[<\/span>469<\/span>]<\/span>|<\/span>11<\/span>)<\/span>-<\/span>(<\/span>0<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>|<\/span>[<\/span>12<\/span>]<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>|<\/span>30<\/span>)<\/span>)<\/span>|<\/span>(<\/span>02<\/span>-<\/span>(<\/span>0<\/span>[<\/span>1<\/span>-<\/span>9<\/span>]<\/span>|<\/span>[<\/span>1<\/span>]<\/span>[<\/span>0<\/span>-<\/span>9<\/span>]<\/span>|<\/span>2<\/span>[<\/span>0<\/span>-<\/span>8<\/span>]<\/span>)<\/span>)<\/span>)<\/span>\n<\/code><\/pre>\n

14.\u9a8c\u8bc1\u7528\u6237\u5bc6\u7801 , \u6b63\u786e\u683c\u5f0f\u4e3a\uff1a\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u957f\u5ea6\u57286~18\u4e4b\u95f4\uff0c\u53ea\u80fd\u5305\u542b\u5b57\u7b26\u3001\u6570\u5b57\u548c\u4e0b\u5212\u7ebf\u3002<\/strong><\/p>\n

\"^[a-zA-Z]\\w{5,17}$\"<\/span>\n<\/code><\/pre>\n

15.\u53ea\u80fd\u8f93\u5165n\u4f4d\u7684\u6570\u5b57\uff1a<\/strong><\/p>\n

\"^\\d{n}$\"<\/span>\n<\/code><\/pre>\n

16.\u53ea\u80fd\u8f93\u5165\u81f3\u5c11n\u4f4d\u7684\u6570\u5b57\uff1a<\/strong><\/p>\n

\"^\\d{n,}$\"<\/span>\n<\/code><\/pre>\n

17.\u53ea\u80fd\u8f93\u5165m~n\u4f4d\u7684\u6570\u5b57\uff1a<\/strong><\/p>\n

\"^\\d{m,n}$\"<\/span> \n<\/code><\/pre>\n

18.\u53ea\u80fd\u8f93\u5165\u96f6\u548c\u975e\u96f6\u5f00\u5934\u7684\u6570\u5b57\uff1a<\/strong><\/p>\n

\"^(0|[1-9][0-9]*)$\"<\/span>\n<\/code><\/pre>\n

19.\u53ea\u80fd\u8f93\u5165\u6709\u4e24\u4f4d\u5c0f\u6570\u7684\u6b63\u5b9e\u6570\uff1a<\/strong><\/p>\n

\"^[0-9]+(.[0-9]{2})?$\"<\/span>\n<\/code><\/pre>\n

20.\u53ea\u80fd\u8f93\u5165\u67091~3\u4f4d\u5c0f\u6570\u7684\u6b63\u5b9e\u6570<\/strong><\/p>\n

\"^[0-9]+(.[0-9]{1,3})?$\"<\/span>\n<\/code><\/pre>\n

21.\u53ea\u80fd\u8f93\u5165\u975e\u96f6\u7684\u6b63\u6574\u6570\uff1a<\/strong><\/p>\n

\"^\\+?[1-9][0-9]*$\"<\/span>\n<\/code><\/pre>\n

22.\u53ea\u80fd\u8f93\u5165\u975e\u96f6\u7684\u8d1f\u6574\u6570\uff1a<\/strong><\/p>\n

\"^\\-[1-9][]0-9\"<\/span>*<\/span>$\n<\/code><\/pre>\n

23.\u53ea\u80fd\u8f93\u5165\u957f\u5ea6\u4e3a3\u7684\u5b57\u7b26\uff1a<\/strong><\/p>\n

\"^.{3}$\"<\/span>\n<\/code><\/pre>\n

24.\u53ea\u80fd\u8f93\u5165\u753126\u4e2a\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a<\/strong><\/p>\n

\"^[A-Za-z]+$\"<\/span>\n<\/code><\/pre>\n

25.\u53ea\u80fd\u8f93\u5165\u753126\u4e2a\u5927\u5199\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a<\/strong><\/p>\n

\"^[A-Z]+$\"<\/span>\n<\/code><\/pre>\n

26.\u53ea\u80fd\u8f93\u5165\u753126\u4e2a\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd\u7ec4\u6210\u7684\u5b57\u7b26\u4e32\uff1a<\/strong><\/p>\n

\"^[a-z]+$\"<\/span>\n<\/code><\/pre>\n

27.\u5339\u914d\u9996\u5c3e\u7a7a\u683c\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/strong><\/p>\n

(<\/span>^<\/span>\\s*<\/span>)<\/span>|<\/span>(<\/span>\\s*<\/span>$)<\/span>\n<\/code><\/pre>\n

\u672a\u5b8c\u5f85\u66f4<\/strong><\/p>\n

\u5206\u4eab\u4e00\u4e2a\u94fe\u63a5,\u4f46\u662f\u4e0d\u77e5\u9053\u80fd\u4e0d\u80fd\u901a\u8fc7\u68c0\u6d4b \u4f60\u662f\u5982\u4f55\u5b66\u4f1a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u5927\u5168\u5de5\u4f5c\u4e2d\u4e0d\u65ad\u7684\u7528\u5230\u6b63\u5219\u5339\u914d,\u5148\u628a\u7528\u8fc7\u7684\u8bb0\u5f55\u4e0b\u6765.\u5f53\u7136,\u6cbb\u6839\u8fd8\u662f\u5f97\u6cbb\u672c,\u62bd\u7a7a\u5b66\u4e60\u6b63\u5219,\u80fd\u81ea\u5df1\u5199\u51fa\u6765\u7684\u6b63\u5219\u624d\u6709...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[82],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/505"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}