Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

Regexes and Perl 6 Code

  • 718 Accesses

Abstract

Now that you know the basic building blocks of regexes, we’ll explore different ways of using regexes in Perl 6 code.

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-1-4842-3228-6_4
  • Chapter length: 14 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   29.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-3228-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   37.99
Price excludes VAT (USA)

Notes

  1. 1.

    https://docs.perl6.org/type/Match.html

  2. 2.

    https://docs.perl6.org/type/Str#method_match

  3. 3.

    Which, in fact, they are.

  4. 4.

    Technically, there’s also title case, where special provisions are made when uppercasing the first letter of each word, for example in a headline. The modifier :ignorecase also works with title case.

  5. 5.

    https://docs.perl6.org/type/Str#routine_substr

  6. 6.

    https://docs.perl6.org/type/Str#routine_comb

  7. 7.

    https://docs.perl6.org/type/Str#routine_split

  8. 8.

    https://docs.perl6.org/type/Str#method_subst

  9. 9.

    Or at least it tries to match in a different way; see the discussion on backtracking in Chapter 6 for more details.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and Permissions

Copyright information

© 2017 Moritz Lenz

About this chapter

Verify currency and authenticity via CrossMark

Cite this chapter

Lenz, M. (2017). Regexes and Perl 6 Code. In: Parsing with Perl 6 Regexes and Grammars. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3228-6_4

Download citation