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.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码
  • ¥50 随机森林与房贷信用风险模型