Hello all,
My Regex is not good enough to interpret the intricacies of the Route class
internals.
I have chosen the GDATA URI pattern (
/-/cat1/cat2/cat3/etc) to target
categories.
It works great for targeting one category, but fails with multiple
categories. The second unit test below fails:
@Test
public void testRouteSingleCategory() {
Route r = new Route("test", "/atom/:collection/-/:categories");
assertTrue(r.match("/atom/movies/-/scifi"));
}
@Test
public void testRouteMultipleCategories() {
Route r = new Route("test", "/atom/:collection/-/:categories");
assertTrue(r.match("/atom/movies/-/scifi/drama"));
}
Can a regex guru explain in plain english the match pattern used in the
Route class?
Thanks,
Rémy
Courriel: [EMAIL PROTECTED]
Cellulaire: 418 809-8585
Site Web: <http://arrova.ca/> http://arrova.ca
Liste:
<http://mail.arrova.ca/mailman/listinfo/dev-list_arrova.ca>
http://mail.arrova.ca/mailman/listinfo/dev-list_arrova.ca