douli6605 2013-09-18 01:13 采纳率: 100%
浏览 115

匹配新的RegexBuddy 4

RegexBuddy usually works perfectly for me. RB4 just came out and I downloaded the demo.

http://yu8.us/rbdemo

Testing it, I am having a problem I didn't have in RB3. I am sure I am missing something obvious and wonder if it may jump out at someone else.

In PHP mode, Match mode, Test mode, I have this pattern (a basic pattern to test some features in a simple password):

^(?=\w{6,10}$)(?=.*?[a-z])(?=.*?[A-Z])(?=.*?\d).*$

In the subject window, I have this:

adfA899
9_PP098kk
sadfa88U

But nothing seems to match. In RB3, all three are highlighted. I also tried matching literals (e.g. "horse") but no cigar.

Nothing urgent but if someone else is configuring RB4 I'd love to know what I'm missing.

  • 写回答

2条回答 默认 最新

  • dte49889 2013-09-18 04:30
    关注

    Do you select <kbd>^$ match at line breaks</kbd>? It activates the multiline mode. Otherwise, ^ and $ only matches at the beginning and the end of the string respectively.

    评论

报告相同问题?

悬赏问题

  • ¥20 XP系统在重新启动后进不去桌面,一直黑屏。
  • ¥15 opencv图像处理,需要四个处理结果图
  • ¥15 无线移动边缘计算系统中的系统模型
  • ¥15 深度学习中的画图问题
  • ¥15 java报错:使用mybatis plus查询一个只返回一条数据的sql,却报错返回了1000多条
  • ¥15 Python报错怎么解决
  • ¥15 simulink如何调用DLL文件
  • ¥15 关于用pyqt6的项目开发该怎么把前段后端和业务层分离
  • ¥30 线性代数的问题,我真的忘了线代的知识了
  • ¥15 有谁能够把华为matebook e 高通骁龙850刷成安卓系统,或者安装安卓系统