public static boolean matchesRobotsPattern ( String pattern , String path ) { return robotsPatternToRegexp ( pattern ) . matcher ( path ) . matches ( ) ; }
Check if the specified path matches a robots . txt pattern