mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-09-13 13:52:12 +00:00
Update Backreferencing.html
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user