diff --git a/README.md b/README.md index 34ef8d6..650e689 100644 --- a/README.md +++ b/README.md @@ -349,7 +349,6 @@ character.
 "(f|c|m)at\.?" => The fat cat sat on the mat.
 
- [Test the regular expression](https://regex101.com/r/DOc5Nu/1) ## 2.8 Anchors @@ -421,7 +420,7 @@ regular expressions: Lookbehinds and lookaheads (also called lookarounds) are specific types of ***non-capturing groups*** (used to match a pattern but without including it in the matching -list). Lookarounds are used when we a pattern must be +list). Lookarounds are used when want to check if a pattern is preceded or followed by another pattern. For example, imagine we want to get all numbers that are preceded by the `$` character from the string `$4.44 and $10.88`. We will use the following regular expression `(?<=\$)[0-9\.]*` @@ -429,6 +428,10 @@ which means: get all the numbers which contain the `.` character and are precede by the `$` character. These are the lookarounds that are used in regular expressions: +
+"(?<=\$)[0-9.]*" => The prices of monitors vary from $10.88 to $4.44 
+
+ |Symbol|Description| |:----:|----| |?=|Positive Lookahead|