Details

    • Type: Improvement Improvement
    • Status: Resolved Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Compiler, Parser
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Regex literals should support options as in JavaScript and other languages (non-literal on Perl and Python) :

      e.g:

      /ok/i.IsMatch("OK")  //case-insensitive regex => it matches
      

      Valid options :

      • g - Global (no-op on .NET)
      • i - Ignore case
      • m - Multi line
      • s - Single line (dot includes \n)
      • x - ignore pattern whitespace (and allow comments)
      • l - locale-aware (no-op on .NET, since (l)ocale-aware by default)
      • n - culture-(n)eutral [boo-specific]
      • c - compiled regex [boo-specific]
      • e - explicit capture [boo-specific]

        Activity

        Cedric Vivier made changes -
        Field Original Value New Value
        Description Regex literals should support options as in JavaScript and other languages (non-literal on Perl and Python) :

        e.g:
        {code}
        /ok/i.IsMatch("OK") //case-insensitive regex
        {code}

        Valid options would be:
        g - Global (no-op on .NET)
        i - Ignore case
        m - Multi line
        s - Single line (dot includes \n)
        x - ignore pattern whitespace (and allow comments)
        l - locale-aware (no-op on .NET, since (l)ocale-aware by default)

        and 3 boo/.net specific options:
        n - culture-(n)eutral
        c - compiled regex
        e - explicit capture

        Regex literals should support options as in JavaScript and other languages (non-literal on Perl and Python) :

        e.g:
        {code}
        /ok/i.IsMatch("OK") //case-insensitive regex => it matches
        {code}

        Valid options :
        - g - Global (no-op on .NET)
        - i - Ignore case
        - m - Multi line
        - s - Single line (dot includes \n)
        - x - ignore pattern whitespace (and allow comments)
        - l - locale-aware (no-op on .NET, since (l)ocale-aware by default)

        - n - culture-(n)eutral [boo-specific]
        - c - compiled regex [boo-specific]
        - e - explicit capture [boo-specific]

        Cedric Vivier made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Cedric Vivier
            Reporter:
            Cedric Vivier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: