Error details:
Found that Google and 360 browsers work fine, but on Firefox it reports an error: SyntaxError: invalid regexp group
The reason for the error: my regularization is useful – —?& lt=
eg.(?<=(?:TianYe))[\u4e00-\u9fa5]{2} ------ Regular match for 2 Chinese characters starting with (TianYe) and ending with (TianYe).
// (? <=(? :TianYe)) ------ matches strings starting with (TianYe) and is not captured (not stored) in the group;
// [\u4e00-\u9fa5] ------ matches Chinese characters;
// {2} ------- matches 2 characters.
Root cause:
Firefox does not support prior assertion(lookahead)
Solutions:
Match it first, and then slice(0,2) it later.
Read More:
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- When using postman assertion, the global variables set in the tests of the pit will take effect only after the interface is executed
- Unity Error: Asset database transaction committed twice!
- Klee Error: Assertion `userMainFn && “unable to get user main“‘ failed
- When Wireshark grabs packets, IP check sum error is displayed
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- C++ BUG: [Error] invalid array assignment
- Runtime error prompt in Android Studio: arrayadapter requires the resource ID to be a textview problem
- (Keil MDK) UCOS floating point support abnormal solution
- rsync error: error starting client-server protocol (code 5) at main.c(1648) [Receiver=3.1.2]
- [Solved] AS Warning: String literal in setText can not be translated. Use Android resources instead.
- How to Solve Error inflating class android.support.design.widget.FloatingActionButton
- Creating test database for alias ‘postgres’… Got an error creating the test database: permission
- Solution: configuration of multiple front ends separated from front end and back end of nginx
- Java handles special characters in URL
- Vue Error compiling template: Component template should contain exactly one root element. If you
- K8S error validating data: ValidationError(Deployment.spec): missing required field selector
- Node js events.js:183 throw er; // Unhandled ‘error’ event
- How to Solve Error Swift 4 Expression type ‘@value CGRect’ is ambiguous without more context
- The tree component in easyUI does not display data or displays undefined solutions