首页 > 编程语言 >ios微信小程序白屏,无效正则表达式"MiniProgramError\nSyntaxError\nError: SyntaxError\nat line:4171,column:26

ios微信小程序白屏,无效正则表达式"MiniProgramError\nSyntaxError\nError: SyntaxError\nat line:4171,column:26

时间:2022-11-28 17:55:22浏览次数:68  
标签:specifier code nSyntaxError 正则表达式 SyntaxError ios

安卓小程序正常,ios白屏报错,无效正则表达式

"MiniProgramError\nSyntaxError\nError: SyntaxError\nat line:4171,column:2635962,SyntaxError: Invalid regular expression: invalid group specifier name Stack: (native code)"

原因:ios不允许(?<=、?<!、?!、?=)的正则表达式

解决方法:更换其他方法,或者(判断同时拥有字母和数字改为判断两次)判断两次,示例

/^[a-zA-Z][a-zA-Z0-9]{5,12}$/ 和 /[0-9]+/

标签:specifier,code,nSyntaxError,正则表达式,SyntaxError,ios
From: https://www.cnblogs.com/fhysy/p/16932907.html

相关文章

  • Xcode编译错误__NSCFConstantString
    __NSCFConstantString:主要错误就是数据类型造成的,然后就是检查哪个地方造成的数据类型调用错误错误一:'-[__NSCFConstantString_imageThatSuppressesAccessibilityHairlineT......
  • Entity Framework Code-First 文章汇集
    为了支持以设计为中心的开发流程,EF4还更多地支持以代码为中心(code-centric),我们称为代码优先的开发,代码优先的开发支持更加优美的开发流程,它允许你:......
  • Net6 CodeFirst注入MySQL数据库上下文
    十年河东,十年河西,莫欺少年穷学无止境,精益求精 2022太难了,好多公司倒闭,互联网不景气,工作难找,苏州的C#/Net程序员的招聘更是少之又少,java,C,等其他语言也是供大于求,总之,难上......
  • utf8mb4_general_ci和utf8mb4_unicode_ci的区别
    2022年11月28日08:50:31官方mysql8.0文档地址:https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-sets.html_general_ciVS_unicode_ci排序规则对于任何Unico......
  • 长度最小子数组-LeetCode209 滑动窗口
    力扣:https://leetcode.cn/problems/minimum-size-subarray-sum/题目  给定一个含有 n 个正整数的数组和一个正整数target。找出该数组中满足其和≥target的长......
  • leetcode 10 - Regular Expression Matching - hard
    Givenaninputstring s andapattern p,implementregularexpressionmatchingwithsupportfor '.' and '*' where:'.' Matchesanysinglecharacter.​......
  • Codeforces Round #828 (Div. 3) F
    F.MEXvsMED一开始写了个感觉每个点只会搞一次的那种线性感性理解了很对结果又wa又tintleft=l-z-1,right=n-r;intcnt=2*now;for(intle......
  • Codeforces div2 #836
    B核心思路:这题我们会发现其实n为奇数的时候是非常好处理的。主要是n为偶数。我们不能难发现,奇数其实就是偶数的扩展情况,这里其实主要有点比较难看出123这个的关系,但是我......
  • D - Freefall -- ATCODER
    D-Freefallhttps://atcoder.jp/contests/abc279/tasks/abc279_d思路求凹函数的极小值  https://www.cnblogs.com/luoyj/p/12408277.html#6#include<bits/stdc+......
  • LeetCode刷题记录.Day27
    逆波兰表达式求值classSolution{public:intevalRPN(vector<string>&tokens){stack<longlong>st;for(inti=0;i<tokens.size();i++){......