PolicyRequirementRule attribute "valve"
Christopher Bongaarts
cab at umn.edu
Fri Sep 13 10:34:50 EDT 2013
On 9/12/2013 12:53 PM, Tom Poage wrote:
> So a pattern used by Matcher.matches() is indeed implicitly anchored so, as pointed out, "." matches a string containing only a single character, and ".+" does the trick.
>
> Sometimes regular expressions aren't so regular.;-)
This is something that confused me when I first bumped into it, because
I was assuming Perl/sed/awk semantics for regex ("match anywhere")
instead of Java semantics ("match whole string").
Rather than add that to all the regex pages on the wiki, maybe it would
be good to just remove the explicit anchors from the examples.
--
%% Christopher A. Bongaarts %% cab at umn.edu %%
%% OIT - Identity Management %% http://umn.edu/~cab %%
%% University of Minnesota %% +1 (612) 625-1809 %%
More information about the users
mailing list