margin-top:20px;font-size:12px;color:-sharp000; for example, how to match to font-size:12px; ...
problem description about regular expressions problems with extracting ip and port from a proxy website found while acting as a proxy pool related codes Please paste the code text below < tr > < td > 1 < td > < td > 115.159.100.19 < td...
want to match how to write regular for non-hello admin under hello .* in apache. url looks like this: hello www index.php hello admin ^hello ([^admin].*)$ hello (?:[^admin].*) Why not all of the above ...
now given an original string, example: abcdefgh, a template rule, example: ab {{}} de {{}} h where {{}} represents any match, and there may be 0 or more {{}} in a template. It is required to write a function to match the template first. If the origina...
topic description regular expressions match only English and special characters ...
var str = ac123abc456abc ; var result = reg.exec (str); console.log (result); = > result: [ "123 ", index: 2, input: "ac123abc456abc ", groups: undefined] = > what is the function of groups? ...
the user enters an expression that validates compliance with the rules. consists of positive integers, and four special symbols: &, |, (,), for example: 1, 2 (3 | 4) ...
the problem of shipping to regular expressions when using find to find files in Terminal on Mac . I want to find files in the current folder and subfolders that contain x Men and Wolverine . I wrote as follows, but I can t find the files. (make ...
is to find out the url, domain name in a pile of text, but the format is basically the same, with several parameters . URL for example: http: www.baidu.com ?source=. full-text search matching output, a, at the beginning of http, which contains the U...
$str = <img class="face" src="xxxxx"><img src="xxxx"><img class="face" src="xxxxx"><img src="xxxx"> ; < hr > There may be other characters in ; wants to use the rule...
means that users can post links and pictures, but cannot send html and css styles! the current way of writing is: var result=str.replace( (< ?)([a-z]+)( s[ w W]*?)?(>) ig,function(s0,s1,s2,s3,s4) { if (! ^(img|a)$ .test(s2)) return &q...
find a rule to verify the validity of url. Many loopholes have been found on the Internet, such as the following: function IsURL(str_url){ var strRegex = ^((https|http|ftp|rtsp|mms)?: ) + ?(([0-9a-z_!~*().&=+$%-]+: )?[0-9a-z_!...
such as the question, go to the code <input type="text" name="address"> var pattern = new RegExp("[`~!@-sharp$^&*()=|{} :; , [ ].<> ?~@-sharp&*|{} ;: " " ]") $("input").on("ke...
I now have a string 5900A7395900A7545900A414 . I want to divide this string into three separate strings 5900A739 , 5900A754 , and 5900A414 how can I use capture groups to implement the above requirements? Note that this is just an example, the actua...
<li class=""><a href=" admin reimburse1?ref=addtabs" addtabs="131" url=" admin reimburse1" py="dwsh" pinyin="danweishenhe"><i class="fa fa-circle-o fa-fw">< i> ...
var str = "12 fff 56 ffg2334"; console.log(str.match( d* g)) *0 ...
what is the working mechanism and principle of the split () method in JavaScript? I m a little confused by the following code? { console.log( xdhg-sharp-sharp .split( -sharp y)); [ xdhg , ] console.log( -sharp-sharpx .split( -sharp ...
needs to match all values, including integers, decimals, and scientific counts. For example, + 100 ", " 5e2 ", "-123 ", "3.1416 " and "- 1E-16 " all represent numeric values. I don t know how to write regular expressions. ...
when using regular expressions, it is found that matching starts with the next word of the matched word. How can I get him to look for it according to the index order of the string? for example: "SegmentFault is a good forum " I write regular expre...
lastZero:function (num) { var reg = 0+$ ; return reg.test(num) } I wrote a rule, but I still think that the rule is just to determine whether the last number is 0 . what I want is some data returned in the background. If the end of these num...