Skip to content

Improve docs for match #179

Closed
Closed

Description

@neumino
  • The output is null/object not array
  • Add an example with a flag
  • Mention that re2 doesn't support back references
  • Add common cases (number, end with X, contains X, email, phone number)
  • Describe the output and show some examples

Activity

  1. coffeemug commented on Jan 17, 2014

    @coffeemug
    Contributor

    The output could be an array if there are capture groups, FYI.

  2. neumino commented on Jan 17, 2014

    @neumino
    MemberAuthor

    The capture groups are in the field groups of the object sent back.

    {
      "end":2,
      "groups":[
        {"end":1,"start":0,"str":"a"},
        {"end":2,"start":1,"str":"b"}
      ],
      "start":0,
      "str":"ab"
    }
    
  3. coffeemug commented on Jan 17, 2014

    @coffeemug
    Contributor

    Ah, sorry.

  4. neumino commented on Mar 28, 2014

    @neumino
    MemberAuthor

    That was fixed with the pull request #240

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions