Caret in JS regular^

Time:2022-3-4

I Caret^
1. The meaning of the character representing the beginning is as follows:/^123$/g.test('123'); //true

2. Use of antisense characters: for example, only Chinese, letters and numbers are matched

/[^ \ u4e00 - \ u9fa5 \ w] / g.test ("mygege @) // true matches @ so it is true
/[^\u4e00-\u9fa5\w]/g.test("mygege ") //false

Recommended Today

Audio and video quick start

Video file definition Video file is a collection of a series of continuous static picture data and audio data. Video files include video data, audio data and caption data, and video files store video and audio coding information, such as h264, MPEG, YUV, ACC, flv, MP4, etc. Video Basics concept Video is composed of a […]