url參數中特殊字符?

2016-10-03 9:56 pm
小弟在看一篇文章發現以下程式碼,但不是很懂其含義和用途

rprotocol = /^\/\//,
rquery = /\?/,
rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
rselectTextarea = /^(?:select|textarea)/i,
rspacesAjax = /\s+/,
rts = /([?&])_=[^&]*/,
rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/;

懇請各位大大幫忙解惑

回答 (2)

2016-10-04 2:59 pm
2016-10-04 12:09 am
他在用Regular expression 用在javascript
https://en.wikipedia.org/wiki/Regular_expression


收錄日期: 2021-05-03 13:53:43
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20161003135632AAnowDO

檢視 Wayback Machine 備份