You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: secure_software_development_fundamentals.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1685,7 +1685,7 @@ The usual way to require a regex to match an entire input is to include *anchors
1685
1685
1686
1686
**ca[brt]**
1687
1687
1688
-
In contrast, this regex will only match *exactly* the words “**cab**”, “**car**”, or “**cat**” in most regex implementations, because “**^**” often means *“match the beginning”* and “**$**” means *“match the end”*:
1688
+
In contrast, this regex will only match *exactly* the words “**cab**”, “**car**”, or “**cat**” in many regex implementations, because “**^**” often means *“match the beginning”* and “**$**” often means *“match the end”*:
1689
1689
1690
1690
**^ca[brt]$**
1691
1691
@@ -1695,7 +1695,7 @@ In some implementations (depending on the option), “**^**” may mean *“begi
1695
1695
1696
1696
Regex notations are *not* the same between different languages and libraries. Almost every programming language has at least one good regex implementation and they all share many features. However, they are slightly different.
1697
1697
1698
-
So, when you use a regex implementation you have not used before, look at its documentation every time you use an operation that you have not used before. Also, be careful when reusing a pattern.Here are some variations to look for.
1698
+
So, when you use a regex implementation you have not used before, look at its documentation every time you use an operation that you have not used before. Also, be careful when reusing a pattern.Here are some variations to look for.
1699
1699
1700
1700
There are three major families of regex language notations:
1701
1701
@@ -1711,7 +1711,7 @@ There are three major families of regex language notations:
1711
1711
1712
1712
* Sometimes “**^**” matches the beginning of all the data, while in others it represents the beginning of any line in the data. This is often controlled by a *multiline* option.
1713
1713
1714
-
* Sometimes “**$**” matches the end of all the data, while in others it represents the end of any line in the data. In some systems, an optional newline character (or similar) is also always accepted. In some systems you must use `\z` to match the end of the data, but in Python you must use `\Z`.
1714
+
* Sometimes “**$**” matches the end of all the data, while in others it represents the end of any line in the data. In some systems, an optional newline character (or similar) is also always accepted. In some systems you must use "**\z**" to match the end of the data, but in Python you must use "**\Z**".
1715
1715
1716
1716
* The “**.**” for representing *“any character”* doesn’t always match the newline character (**\n**); often there is an option to turn this on or off.
0 commit comments