Update Backreferencing.html

This commit is contained in:
Aakash Panchal 2020-03-08 15:19:55 +05:30 committed by GitHub
parent 06bdc13055
commit 23d1339a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
<html>
<head>
<style type="text/css">
@ -79,12 +80,12 @@
<iframe scrolling="no" style="position: absolute; top: -9999em; visibility: hidden;" onload="this.style.position='static'; this.style.visibility='visible';" src="https://regexr.com/4vu7p" class="embed"></iframe>
</div>
<h3 id="backreferencingandquantifiers">Backreferencing and quantifiers</h3>
<h3 id="backreferencingandquantifiers">Backreferencing and Quantifiers</h3>
<p>When we are using a backreference for an expression with quantifiers, then we have to be careful. Let's observe it:</p>
<div class="container">
<iframe scrolling="no" style="position: absolute; top: -9999em; visibility: hidden;" onload="this.style.position='static'; this.style.visibility='visible';" src="https://regexr.com/4vu85" class="embed"></iframe>
<iframe scrolling="no" style="position: absolute; top: -9999em; visibility: hidden;" onload="this.style.position='static'; this.style.visibility='visible';" src="https://regexr.com/4vuet" class="embed"></iframe>
</div>
<p>Note that <code>(\d)+</code> and <code>(\d+)</code> both are different. So, what will happen for <code>(\d)+ -- \1</code> expression and same text above?</p>