Reputation: 41838
RegexBuddy usually works perfectly for me. RB4 just came out and I downloaded the demo.
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.
Upvotes: 1
Views: 124
Reputation: 41838
Okay, I figured it out. It was indeed very silly.
There's a "highlight" control that highlights the matches. In RB3, I always had it turned on, so I had forgotten that it could even be off. When I installed RB4, it was off by default. The subject was being matched, but it wasn't being highlighted, so I thought it wasn't matching.
All good now.
Thanks for your help, you all. :)
Upvotes: 3
Reputation: 56809
Do you select ^$ match at line breaks? It activates the multiline mode. Otherwise, ^
and $
only matches at the beginning and the end of the string respectively.
Upvotes: 1