Skip to main content

Keyword Forensics

  • Chapter
  • First Online:
Book cover Introductory Computer Forensics
  • 167k Accesses

Abstract

The objectives of this chapter are to:

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 119.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Appendix: Regular Expression Metacharacters [2, 4]

Appendix: Regular Expression Metacharacters [2, 4]

Metacharacter

Description

^

Matches the following item at the beginning of a text line

$

Matches the preceding item at the end of a text line

.

Matches any single character

[…]

A bracket expression. Matches a single character in the bracketed list or range

[^…]

Matches a single character that is not contained within the brackets

( )

Defines a marked subexpression. A marked subexpression is also called a block or capturing group. BRE mode requires

*

Matches the preceding item zero or more time

{m}

The preceding item is matched exactly m times. BRE mode requires \{m\}

{m,}

The preceding item is matched N or more times. BRE mode requires \{m,\}

{m,n}

Matches the preceding item at least m and not more than n times. BRE mode requires \{m,n\}

\

The escape of special meaning of next character

The next three metacharacters are only for extended regular expression

Metacharacter

Description

?

Matches the preceding character, metacharacter, or expression zero or one time

+

Matches the preceding character, metacharacter, or expression one or more times. There is no limit to the amount of times it can be matched

|

Matches the character, metacharacter, or expression on either side of it

Note that to use the grep command to search for metacharacters, you have to use a backslash (\) to escape the metacharacter. For example, the regular expression “^\.” matches lines that start with a period.

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Lin, X. (2018). Keyword Forensics. In: Introductory Computer Forensics. Springer, Cham. https://doi.org/10.1007/978-3-030-00581-8_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-00581-8_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-00580-1

  • Online ISBN: 978-3-030-00581-8

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics