Skip to content

Commit 36fd7e3

Browse files
committed
Fix typo
1 parent 32431f8 commit 36fd7e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/regex.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Regex can be difficult to understand at a glance, as it is meant for describing
3737

3838
A regex pattern is a sequence of characters that define a search. The regex `xyz` would match the string 'xyz', but not 'xy' or 'xzy'.
3939

40-
This can be expanded to include more complex patterns. For example, `x..`` or `x.*y.*z`` would also match 'xyz', but also 'xab' or 'x123y456z'.
40+
This can be expanded to include more complex patterns. For example, `x..` or `x.*y.*z`` would also match 'xyz', but also 'xab' or 'x123y456z'.
4141

4242
Much of our data is structured in a way that can be described by regular expressions. Email address often include the '@' symbol and a domain address, and credit card numbers often follow rules based on their issuer. Even our picoCTF flags are often in the format picoCTF{}, which could be described by regex as `picoCTF\{.{1,15}\}`.
4343

@@ -83,4 +83,4 @@ else:
8383

8484
This would print 'Match found!', as the pattern 'hello, *' matches the string 'hello, world!'. It would also return a match if the string included your name, like 'hello, reader!'.
8585

86-
Throughout this Primer, we'll share examples from xref:book.adoc#_levels_of_code[other coding languages] as well. Regex is a very helpful tool, and so it is nice to be able to use it in many different environments, depending on what is available and your comfort level. You might see regex for helping with a database query, website, or even a CTF challenge!
86+
Throughout this Primer, we'll share examples from xref:book.adoc#_levels_of_code[other coding languages] as well. Regex is a very helpful tool, and so it is nice to be able to use it in many different environments, depending on what is available and your comfort level. You might see regex for helping with a database query, website, or even a CTF challenge!

0 commit comments

Comments
 (0)