GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Comma affects whether an error is thrown · Issue #9 · SimpleRegex/SRL-Python

This repository was archived by the owner on Jun 9, 2025. It is now read-only.
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Comma affects whether an error is thrown #9

Copy link
Copy link
Open
Open
Comma affects whether an error is thrown#9
Copy link

Description

@Clara-Brandt
Clara-Brandt
opened on Jun 23, 2021
Issue body actions

With a comma this expression is valid,

any of( (anything never or more capture(digit) ) capture(letter),(anything once or more))

any of( (anything never or more capture(digit) ) capture(letter)(anything once or more))

but without a comma it interprets (anything once or more) as a sub-query for capture(letter) and throws an error:
The SRL Query contains an error: capture does not allow the use of sub-queries.

Unfortunately, "anything once or more" must be wrapped in parentheses (the parentheses are the reason a sub-query is being interpreted) so that the disjunction doesn't treat the quantifier separately.

Activity

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

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.