加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

UE4正则表达式检测输入信息

发布时间:2020-12-14 00:42:29 所属栏目:百科 来源:网络整理
导读:本文转自:http://blog.csdn.net/liliangshuai/article/details/53187474 CheckStringIsValid 实现 Return True:输入非法,不是设置的正则表达是值 Return False:设置正常值 正则表达式输入数字和字母: [^a-zA-Z0-9] [cpp] view plain copy print ? bool

本文转自:http://blog.csdn.net/liliangshuai/article/details/53187474



CheckStringIsValid 实现

Return True:输入非法,不是设置的正则表达是值

Return False:设置正常值

正则表达式输入数字和字母:[^a-zA-Z0-9]


[cpp] view plain copy
print ?
  1. boolUFunctionLib::CheckStringIsValid(constFStringstr,constFStringReg)
  2. {
  3. FRegexPatternPattern(Reg);
  4. FRegexMatcherregMatcher(Pattern,str);
  5. regMatcher.SetLimits(0,str.Len());
  6. returnregMatcher.FindNext();
  7. }

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读