Skip to content

. (dot) metacharacter escaping #547

Closed

Description

@MegaManSec

Hi there,

I'm looking for some clarification on definitive syntax nomenclature in re2.

In the wiki https://github.com/google/re2/wiki/syntax, is . considered a metacharacter, given that *+?()| are listed as metacharacters, while . is not?

Thank you

Activity

  1. rsc commented on Jul 15, 2025

    @rsc
    Contributor

    Dot is a metacharacter too, as are {}^$ and more. That list is not meant to be definitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions