<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Feb 23, 2016 at 8:04 AM Tom Scavo <<a href="mailto:trscavo@gmail.com">trscavo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My guess is: Perl is successfully matching a prefix of the URL whereas<br>
Java is trying to match the entire URL.<br></blockquote><div><br></div><div>That's correct. Code uses <a href="https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#matches">https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#matches</a>(). Contrast that with <a href="https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#find">https://docs.oracle.com/javase/7/docs/api/java/util/regex/Matcher.html#find</a>(), which I believe is consistent with Perl behavior. In either case line start/termination match chars are irrelevant. So what I said earlier is wrong; the two expressions are not equivalent and you need the ".*" signifying "everything following."</div><div><br></div><div>The logs will emit something like "successfully matched" at DEBUG when a match is found, so that will hopefully help you troubleshoot your patterns.</div><div><br></div><div>M<a href="mailto:users-unsubscribe@shibboleth.net" target="_blank"></a><br>
</div><div><br></div></div></div>