for example, there is a paragraph of markdown . -sharp-sharp mysql >mysql MySQL Command Line Client mysql; ; ![image](http: localhost:3000 images markdown image-1551081068552-11.png) [http: localhost:8081 markdown 3](http: localhost:8081 mar...
in the following code, I want to complete the number after "p " to 3 digits, but I find that no matter how many bits are after p, there is always a 0 in front of it. var a= 18917304_p1234 ; a.replace( ( d.*p)( d.*) , $1 +( $2 .padStart(3, 0 ...
now there is a requirement that the name should have the following rules A sequence of 4x32 characters starting with a letter, which cannot contain Chinese, but can be uppercase and lowercase characters, numbers, underscores, hyphens, dots . How should ...
problem description validate the entered data. You can only enter data between 0 and 1. 0 cannot be entered, 1 can be entered, and there are only 2 decimal places. How to write a regular expression with only 2 decimal places? 0.0 and 0.00 also fail v...
var key = ? (key) var str1 = `{{${key} ? ${key}: nihao }}` var str2 = `{{ ${key} && nihao }}` var str3 = `{{ nihao || ${key} }}` reg.test(str1) && reg.test(str2) && reg.test(str3) === true reg =? ...
in markdown, = = big = = I want to parse it into & ltdel > big & lt del >, how to analyze it? I want to know the principle. I looked for other people s cases on the Internet, but I didn t understand them too well. I would like to ask if there is a ...
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...
javascript:repalce (regEx,Fn) how to get the value of arguments in the callback function Fn () sources of topics and their own ideas an example in the extension of regular expression in Chapter 5 of Ruan Yifeng s introduction to ES6, runtime erro...
for example: aa A1:B2 v2VR b3 want to get: aa A1:B2 v2VR b3 ...
var str= <iframe frameborder="0" width="640" height="498" src="https: v.qq.com iframe player.html?vid=a0678a3ahqx&tiny=0&auto=0" allowfullscreen="">< iframe><iframe frameborder=&q...
Raw data: n2412 n : n2 ... : ...
var reg = (^1[3456789] d{9}$)|( w+([-+.] w+)*@ w+([-.] w+)* . w+([-.] w+)*) reg.test( 13807011234 ); false reg.test( 111@qq.com ); true var reg = (^1[3456789] d{...
has the following array [ {name: , age: 15}, {name: , age: 14}, {name: , age: 13}, {name: , age: 22}, {name: , age: 16}, {name: , age: 18}, ] can we use regular and findIndex-like methods to match all index? with ...
use the fs.read () method of nodejs to read part of the txt file. The buffer is set to 1024 bytes. because one Chinese character occupies two bytes, occasionally the last Chinese character reads only one byte, resulting in garbled code . var fs =...
I can t tell you how to analyze it. if ([] = = false) {console.log (1)}; if ({} = = false) {console.log (2)}; if ([]) {console.log (3)} if ([1] = = [1]) {console.log (4)} ask the Great God for a detailed explanation ...
is the small icon project of the website above the browser, which is the ico icon built with vue-cli. I added it in the index.html of the root directory, but after I packed it up and went online, I always reported that I couldn t find it and sometimes ...
txt file cannot open prompt : check the registry txtfile file path is the right corresponding path notepad.exe can open. obsessive-compulsive disorder is very uncomfortable. Although it is solved by changing the default opening mode with an editor. Do...
topic description Fermat s Great Theorem (Fermat s Last Theorem) states that no integer a, b, and c can make: a n + b n = cantilever, which is true for any n greater than 2. write a function called check_fermat, which accepts four parameters-a b...