diff --git a/core/core.services.yml b/core/core.services.yml
index 640440b..a10e35d 100644
--- a/core/core.services.yml
+++ b/core/core.services.yml
@@ -454,6 +454,9 @@ services:
       - { name: path_processor_inbound, priority: 100 }
       - { name: path_processor_outbound, priority: 300 }
     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..9f1196c 100644
--- a/core/includes/path.inc
+++ b/core/includes/path.inc
@@ -38,27 +38,12 @@ function drupal_is_front_page() {
  *
  * @return
  *   Boolean value: TRUE if the path matches a pattern, FALSE otherwise.
+ *
+ * @deprecated as of Drupal 8.0. Use
+ *   \Drupal\Core\Path\PathMatcherInterface::matchPath() 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);
+  return \Drupal::service('path_matcher')->matchPath($path, $patterns);
 }
 
 /**
diff --git a/core/lib/Drupal/Core/Path/PathMatcher.php b/core/lib/Drupal/Core/Path/PathMatcher.php
new file mode 100644
index 0000000..62aecc8
--- /dev/null
+++ b/core/lib/Drupal/Core/Path/PathMatcher.php
@@ -0,0 +1,64 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Path\PathMatcher.
+ */
+
+namespace Drupal\Core\Path;
+
+use Drupal\Core\Config\ConfigFactory;
+
+/**
+ * Provides a path matcher.
+ */
+class PathMatcher implements PathMatcherInterface {
+
+  /**
+   * The default front page.
+   *
+   * @var string
+   */
+  protected $frontPage;
+
+  /**
+   * The cache of regular expressions.
+   *
+   * @var array
+   */
+  protected $regexes;
+
+  /**
+   * Creates a new PathMatcher.
+   *
+   * @param \Drupal\Core\Config\ConfigFactory $config_factory
+   *   The config factory.
+   */
+  public function __construct(ConfigFactory $config_factory) {
+    $this->frontPage = $config_factory->get('system.site')->get('page.front');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function matchPath($path, $patterns) {
+    if (!isset($this->regexes[$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->frontPage, '/') . '\2',
+      );
+      $patterns_quoted = preg_quote($patterns, '/');
+      $this->regexes[$patterns] = '/^(' . preg_replace($to_replace, $replacements, $patterns_quoted) . ')$/';
+    }
+    return (bool) preg_match($this->regexes[$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..bfc2c39
--- /dev/null
+++ b/core/lib/Drupal/Core/Path/PathMatcherInterface.php
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\Core\Path\PathMatcherInterface
+ */
+
+namespace Drupal\Core\Path;
+
+interface PathMatcherInterface {
+
+  /**
+   * Checks 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 bool
+   *   TRUE if the path matches a pattern, FALSE otherwise.
+   */
+  public function matchPath($path, $patterns);
+
+}
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..dbbb7c8
--- /dev/null
+++ b/core/modules/system/lib/Drupal/system/Plugin/Core/Condition/RequestPath.php
@@ -0,0 +1,132 @@
+<?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 Drupal\Core\Plugin\ContainerFactoryPluginInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\HttpFoundation\Request;
+
+
+/**
+ * Provides a 'Request Path' condition.
+ */
+class RequestPath extends ConditionPluginBase implements ContainerFactoryPluginInterface {
+
+  /**
+   * A request object.
+   *
+   * @var \Symfony\Component\HttpFoundation\Request
+   */
+  protected $request;
+
+  /**
+   * An alias manager to find the alias for the current system path.
+   *
+   * @var \Drupal\Core\Path\AliasManagerInterface
+   */
+  protected $aliasManager;
+
+  /**
+   * A path matcher for matching the path against a pattern.
+   *
+   * @var \Drupal\Core\Path\PathMatcherInterface
+   */
+  protected $pathMatcher;
+
+  /**
+   * Constructs a RequestPath condition plugin.
+   *
+   * @param \Symfony\Component\HttpFoundation\Request $request
+   *   The HttpRequest object representing the current request.
+   * @param \Drupal\Core\Path\AliasManagerInterface $alias_manager
+   *   An alias manager to find the alias for the current system path.
+   * @param \Drupal\Core\Path\PathMatcherInterface $path_matcher
+   *   A path matcher for matching the path against a pattern.
+   * @param array $configuration
+   *   A configuration array containing information about the plugin instance.
+   * @param string $plugin_id
+   *   The plugin_id for the plugin instance.
+   * @param array $plugin_definition
+   *   The plugin implementation definition.
+   */
+  public function __construct(Request $request, AliasManagerInterface $alias_manager, PathMatcherInterface $path_matcher, array $configuration, $plugin_id, array $plugin_definition) {
+    parent::__construct($configuration, $plugin_id, $plugin_definition);
+    $this->request = $request;
+    $this->aliasManager = $alias_manager;
+    $this->pathMatcher = $path_matcher;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function create(ContainerInterface $container, array $configuration, $plugin_id, array $plugin_definition) {
+    return new static(
+      $container->get('request'),
+      $container->get('path.alias_manager'),
+      $container->get('path_matcher'),
+      $configuration,
+      $plugin_id,
+      $plugin_definition);
+  }
+
+  /**
+   * {@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.
+    $path = $this->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/tests/Drupal/system/Tests/Condition/RequestPathConditionTest.php b/core/modules/system/tests/Drupal/system/Tests/Condition/RequestPathConditionTest.php
new file mode 100644
index 0000000..f92fd47
--- /dev/null
+++ b/core/modules/system/tests/Drupal/system/Tests/Condition/RequestPathConditionTest.php
@@ -0,0 +1,95 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\system\Tests\Condition\RequestPathConditionTest.
+ */
+
+namespace Drupal\system\Tests\Condition;
+
+use Drupal\system\Plugin\Core\Condition\RequestPath;
+use Drupal\Core\Path\PathMatcher;
+use Symfony\Component\HttpFoundation\Request;
+
+use Drupal\Tests\UnitTestCase;
+
+/**
+ * Tests path processor functionality.
+ */
+class RequestPathConditionTest extends UnitTestCase {
+
+  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',
+    );
+  }
+
+  /**
+   * Tests the RequestPath condition.
+   */
+  function testConditions() {
+
+    $condition_manager = $this->getMockBuilder('Drupal\Core\Condition\ConditionManager')
+      ->disableOriginalConstructor()
+      ->getMock();
+
+    // Create an alias manager stub.
+    $alias_manager = $this->getMockBuilder('Drupal\Core\Path\AliasManager')
+      ->disableOriginalConstructor()
+      ->getMock();
+
+    $system_path_map = array(
+      // Set up one proper alias that can be resolved to a system path.
+      array('my/aliased/page', NULL, 'foo'),
+    );
+
+    $alias_manager->expects($this->any())
+      ->method('getPathAlias')
+      ->will($this->returnValueMap($system_path_map));
+
+    // Create a stub config factory with all config settings that will be checked
+    // during this test.
+    $config_factory_stub = $this->getConfigFactoryStub(
+      array(
+        'system.site' => array(
+          'page.front' => 'user'
+        ),
+      )
+    );
+    $path_matcher = new PathMatcher($config_factory_stub);
+    $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');
+
+    $condition = new RequestPath($new_request, $alias_manager, $path_matcher, array(), 'request_path', array());
+    $condition->setExecutableManager($condition_manager);
+
+    $pages = "my/pass/page\r\nmy/pass/page2\r\nfoo";
+    $condition->setConfig('pages', $pages);
+
+    // Check the first configured path and summary.
+    $this->assertTrue($condition->evaluate(), 'The system_path my/pass/page passes.');
+
+    // Check the second configured path.
+    $new_request->attributes->set('system_path', 'my/pass/page2');
+    $this->assertTrue($condition->evaluate(), 'The system_path my/pass/page2 passes.');
+
+    // Check that a system path that is not included in the pages config, but whose
+    // alias is, passes.
+    $new_request->attributes->set('system_path', 'my/aliased/page');
+    $this->assertTrue($condition->evaluate(), 'The system_path my/aliased/page passes.');
+
+    $new_request->attributes->set('system_path', 'my/pass/page3');
+    $condition->setConfig('pages', 'my/pass/*');
+    $this->assertTrue($condition->evaluate(), 'The system_path my/pass/page3 passes for wildcard paths.');
+
+    // Check that a system path that is not included in the pages config, either
+    // directly or via an alias, fails.
+    $new_request->attributes->set('system_path', 'my/fail/page4');
+    $this->assertFalse($condition->evaluate(), 'The system_path my/fail/page4 fails.');
+
+  }
+}
