diff --git a/core/core.services.yml b/core/core.services.yml
index 9a36139..f162472 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -396,6 +396,9 @@ services:
     tags:
       - { name: path_processor_inbound, priority: 100 }
     arguments: ['@path.alias_manager']
+  path_matcher:
+    class: Drupal\Core\Path\PathMatcher
+    arguments: ['@config.factory']
   transliteration:
     class: Drupal\Core\Transliteration\PHPTransliteration
   flood:
diff --git a/core/includes/path.inc b/core/includes/path.inc
index 911cfe0..bb6263a 100644
--- a/core/includes/path.inc
+++ b/core/includes/path.inc
@@ -38,27 +38,11 @@ function drupal_is_front_page() {
  *
  * @return
  *   Boolean value: TRUE if the path matches a pattern, FALSE otherwise.
+ * @todo refector usages of this method to use the directly service instead.
  */
 function drupal_match_path($path, $patterns) {
-  $regexps = &drupal_static(__FUNCTION__);
-
-  if (!isset($regexps[$patterns])) {
-    // Convert path settings to a regular expression.
-    // Therefore replace newlines with a logical or, /* with asterisks and the <front> with the frontpage.
-    $to_replace = array(
-      '/(\r\n?|\n)/', // newlines
-      '/\\\\\*/',     // asterisks
-      '/(^|\|)\\\\<front\\\\>($|\|)/' // <front>
-    );
-    $replacements = array(
-      '|',
-      '.*',
-      '\1' . preg_quote(config('system.site')->get('page.front'), '/') . '\2'
-    );
-    $patterns_quoted = preg_quote($patterns, '/');
-    $regexps[$patterns] = '/^(' . preg_replace($to_replace, $replacements, $patterns_quoted) . ')$/';
-  }
-  return (bool)preg_match($regexps[$patterns], $path);
+  $path_matcher = \Drupal::service('path_matcher');
+  return $path_matcher->matchPath($path, $patterns);
 }
 
 /**
diff --git a/core/lib/Drupal/Core/Condition/ConditionManager.php b/core/lib/Drupal/Core/Condition/ConditionManager.php
index 4131330..78089de 100644
--- a/core/lib/Drupal/Core/Condition/ConditionManager.php
+++ b/core/lib/Drupal/Core/Condition/ConditionManager.php
@@ -15,6 +15,7 @@
 use Drupal\Core\Plugin\Discovery\AlterDecorator;
 use Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery;
 use Drupal\Core\Plugin\Discovery\CacheDecorator;
+use Drupal\Core\Plugin\Factory\ContainerFactory;
 
 /**
  * A plugin manager for condition plugins.
@@ -34,7 +35,7 @@ public function __construct(\Traversable $namespaces) {
     $this->discovery = new AlterDecorator($this->discovery, 'condition_info');
     $this->discovery = new CacheDecorator($this->discovery, 'condition:' . language(LANGUAGE_TYPE_INTERFACE)->langcode);
 
-    $this->factory = new DefaultFactory($this);
+    $this->factory = new ContainerFactory($this);
   }
 
   /**
diff --git a/core/lib/Drupal/Core/Path/PathMatcher.php b/core/lib/Drupal/Core/Path/PathMatcher.php
new file mode 100644
index 0000000..edda542
--- /dev/null
+++ b/core/lib/Drupal/Core/Path/PathMatcher.php
@@ -0,0 +1,54 @@
+<?php
+/**
+ * @file
+ * Contains \Drupal\Core\Path\PathMatcher.
+ */
+
+namespace Drupal\Core\Path;
+
+use Drupal\Core\Config\ConfigFactory;
+
+class PathMatcher implements  PathMatcherInterface {
+
+  /**
+   * The config factory.
+   *
+   * @var \Drupal\Core\Config\ConfigFactory
+   */
+  protected $configFactory;
+
+  /**
+   * The cache of regular expressions.
+   *
+   * @var array
+   */
+  protected $regexps;
+
+  function __construct(ConfigFactory $config_factory) {
+    $this->configFactory = $config_factory;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function matchPath($path, $patterns) {
+    if (!isset($this->regexps[$patterns])) {
+      // Convert path settings to a regular expression.
+      // Therefore replace newlines with a logical or, /* with asterisks and the
+      // <front> with the frontpage.
+      $to_replace = array(
+        '/(\r\n?|\n)/', // newlines
+        '/\\\\\*/',     // asterisks
+        '/(^|\|)\\\\<front\\\\>($|\|)/', // <front>
+      );
+      $replacements = array(
+        '|',
+        '.*',
+        '\1' . preg_quote($this->configFactory->get('system.site')->get('page.front'), '/') . '\2',
+      );
+      $patterns_quoted = preg_quote($patterns, '/');
+      $this->regexps[$patterns] = '/^(' . preg_replace($to_replace, $replacements, $patterns_quoted) . ')$/';
+    }
+    return (bool) preg_match($this->regexps[$patterns], $path);
+  }
+}
diff --git a/core/lib/Drupal/Core/Path/PathMatcherInterface.php b/core/lib/Drupal/Core/Path/PathMatcherInterface.php
new file mode 100644
index 0000000..9408d31
--- /dev/null
+++ b/core/lib/Drupal/Core/Path/PathMatcherInterface.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * @file
+ * Contains \Drupal\Core\Path\PathMatcherInterface
+ */
+
+namespace Drupal\Core\Path;
+
+interface PathMatcherInterface {
+
+  /**
+   * Check if a path matches any pattern in a set of patterns.
+   *
+   * @param string $path
+   *   The path to match.
+   * @param string $patterns
+   *   String containing a set of patterns separated by \n, \r or \r\n.
+   *
+   * @return Boolean
+   *   value: TRUE if the path matches a pattern, FALSE otherwise.
+   */
+  public function matchPath($path, $patterns);
+
+}
diff --git a/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php b/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php
index cdf6f49..788612d 100644
--- a/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php
+++ b/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php
@@ -19,7 +19,10 @@ class ContainerFactory extends DefaultFactory {
   public function createInstance($plugin_id, array $configuration) {
     $plugin_definition = $this->discovery->getDefinition($plugin_id);
     $plugin_class = static::getPluginClass($plugin_id, $plugin_definition);
-    return $plugin_class::create(\Drupal::getContainer(), $configuration, $plugin_id, $plugin_definition);
+    $class = new \ReflectionClass($plugin_class);
+    if ($class->hasMethod('create')) {
+      return $plugin_class::create(\Drupal::getContainer(), $configuration, $plugin_id, $plugin_definition);
+    }
   }
 
 }
diff --git a/core/modules/system/lib/Drupal/system/Plugin/Core/Condition/RequestPath.php b/core/modules/system/lib/Drupal/system/Plugin/Core/Condition/RequestPath.php
new file mode 100644
index 0000000..db0ed8e
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/Core/Condition/RequestPath.php
@@ -0,0 +1,130 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Plugin\Core\Condition\RequestPath.
+ */
+
+namespace Drupal\system\Plugin\Core\Condition;
+
+use Drupal\Component\Annotation\Plugin;
+use Drupal\Component\Utility\Unicode;
+use Drupal\Core\Annotation\Translation;
+use Drupal\Core\Condition\ConditionPluginBase;
+use Drupal\Core\Path\AliasManagerInterface;
+use Drupal\Core\Path\PathMatcherInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+
+/**
+ * Provides a 'Request Path' condition.
+ *
+ * @Plugin(
+ *   id = "request_path",
+ *   label = @Translation("Request Path"),
+ *   module = "system",
+ *   context = {
+ *     "request" = {
+ *       "class" = "Symfony\Component\HttpFoundation\Request"
+ *     }
+ *   }
+ * )
+ */
+class RequestPath extends ConditionPluginBase {
+
+  /**
+   * The path matcher.
+   *
+   * @var \Drupal\Core\Path\PathMatcherInterface
+   */
+  protected $pathMatcher;
+
+  /**
+   * The alias manager.
+   *
+   * @var \Drupal\Core\Path\AliasManagerInterface
+   */
+  protected $aliasManager;
+
+  /**
+   * Constructs a new RequestPath condition plugin.
+   *
+   * @param PathMatcherInterface $path_matcher
+   *   The path matcher.
+   * @param AliasManagerInterface $alias_manager
+   *   The alias manager.
+   */
+  function __construct(PathMatcherInterface $path_matcher, AliasManagerInterface $alias_manager) {
+    $this->pathMatcher = $path_matcher;
+    $this->aliasManager = $alias_manager;
+  }
+
+  /**
+   * Creates an instance of the plugin.
+   *
+   * This is a factory method that returns a new instance of this object. The
+   * factory should pass any needed dependencies into the constructor of this
+   * object, but not the container itself.
+   *
+   * @param ContainerInterface $container
+   *   The service container this object should use.
+   */
+  public static function create(ContainerInterface $container) {
+    return new static(
+      $container->get('path.alias_manager'),
+      $container->get('path_matcher')
+    );
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function form($form, &$form_state) {
+    $form['pages'] = array(
+      '#type' => 'textarea',
+      '#title' => t('Pages'),
+      '#default_value' => !empty($this->configuration['pages']) ? $this->configuration['pages'] : '',
+      '#description' => t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %user for the current user's page and %user-wildcard for every user page. %front is the front page.", array('%user' => 'user', '%user-wildcard' => 'user/*', '%front' => '<front>')),
+    );
+    return parent::form($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submit($form, &$form_state) {
+    $this->configuration['pages'] = $form_state['values']['pages'];
+    parent::submit($form, $form_state);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function summary() {
+    $pages = array();
+    foreach (explode("\n", $this->configuration['pages']) as $page) {
+      $pages[] = trim($page);
+    }
+    $pages = implode(', ', $pages);
+    if (!empty($this->configuration['negate'])) {
+      return t('Do not return true on the following pages: @pages', array('@pages' => $pages));
+    }
+    return t('Return true on the following pages: @pages', array('@pages' => $pages));
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function evaluate() {
+    // Convert path to lowercase. This allows comparison of the same path
+    // with different case. Ex: /Page, /page, /PAGE.
+    $pages = Unicode::strtolower($this->configuration['pages']);
+    // Compare the lowercase path alias (if any) and internal path.
+    $request = $this->getContextValue('request');
+    $path = $request->attributes->get('system_path');
+    $path_alias = Unicode::strtolower($this->aliasManager->getPathAlias($path));
+
+    return $this->pathMatcher->matchPath($path_alias, $pages) || (($path != $path_alias) && $this->pathMatcher->matchPath($path, $pages));
+  }
+
+}
diff --git a/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php b/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php
new file mode 100644
index 0000000..8cfbd45
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Tests/Condition/RequestPathConditionTest.php
@@ -0,0 +1,84 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Tests\Condition\RequestPathConditionTest.
+ */
+
+namespace Drupal\system\Tests\Condition;
+
+use Drupal\simpletest\DrupalUnitTestBase;
+use Symfony\Component\HttpFoundation\Request;
+
+/**
+ * Tests the request path condition.
+ */
+class RequestPathConditionTest extends DrupalUnitTestBase {
+
+  /**
+   * The condition plugin manager.
+   *
+   * @var \Drupal\Core\Condition\ConditionManager
+   */
+  protected $manager;
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = array('system');
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Request Path Condition Plugin',
+      'description' => 'Tests that the Request Path Condition, provided by the system module, is working properly.',
+      'group' => 'Condition API',
+    );
+  }
+
+  protected function setUp() {
+    parent::setUp();
+
+    $this->manager = $this->container->get('plugin.manager.condition');
+  }
+
+  /**
+   * Test the RequestPath condition.
+   */
+  public function testConditions() {
+    // Fabricate a new request.
+    $new_request = Request::create('http://test.com/my/pass/page');
+    // The condition checks the system_path attribute of the request so we must
+    // set that to the path we want to evaluate.
+    $new_request->attributes->set('system_path', 'my/pass/page');
+
+    $pages = "my/pass/page\r\nmy/pass/page2";
+    $condition = $this->manager->createInstance('request_path')
+      ->setConfig('pages', $pages)
+      ->setContextValue('request', $new_request)
+      ->setContextValue('alias_manager', $this->container->get('path.alias_manager'));
+
+    // Check the first configured path and summary.
+    $this->assertTrue($condition->execute(), 'The system_path my/pass/page passes.');
+    $this->assertIdentical($condition->summary(), 'Return true on the following pages: my/pass/page, my/pass/page2');
+
+    // Check the second configured path.
+    $new_request->attributes->set('system_path', 'my/pass/page2');
+    $this->assertTrue($condition->execute(), 'The system_path my/pass/page2 passes.');
+
+    $condition->setConfig('pages', 'my/pass/*');
+    $this->assertTrue($condition->execute(), 'The system_path my/pass/page2 passes for wildcard paths.');
+
+    // Set the pages to a new path.
+    $condition->setConfig('pages', 'my/fail/page');
+    $this->assertFalse($condition->execute(), 'The system_path my/fail/page fails.');
+    $this->assertIdentical($condition->summary(), 'Return true on the following pages: my/fail/page');
+
+    // Negate the condition; check that execution and summary are still proper.
+    $condition->setConfig('negate', TRUE);
+    $this->assertTrue($condition->execute(), 'The system_path my/fail/page is properly negated.');
+    $this->assertIdentical($condition->summary(), 'Do not return true on the following pages: my/fail/page');
+  }
+
+}
