mirror of
https://github.com/ziishaned/learn-regex.git
synced 2025-08-07 03:56:46 -04:00
Replace lookaheads with lookarounds in definition of lookarounds
This commit is contained in:
parent
5108deb90c
commit
780ab9bd69
@ -409,7 +409,7 @@ shorthand character sets are as follows:
|
|||||||
|
|
||||||
Lookbehind and lookahead (also called lookaround) are specific types of
|
Lookbehind and lookahead (also called lookaround) are specific types of
|
||||||
***non-capturing groups*** (Used to match the pattern but not included in matching
|
***non-capturing groups*** (Used to match the pattern but not included in matching
|
||||||
list). Lookaheads are used when we have the condition that this pattern is
|
list). Lookarounds are used when we have the condition that this pattern is
|
||||||
preceded or followed by another certain pattern. For example, we want to get all
|
preceded or followed by another certain pattern. For example, we want to get all
|
||||||
numbers that are preceded by `$` character from the following input string
|
numbers that are preceded by `$` character from the following input string
|
||||||
`$4.44 and $10.88`. We will use following regular expression `(?<=\$)[0-9\.]*`
|
`$4.44 and $10.88`. We will use following regular expression `(?<=\$)[0-9\.]*`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user