Skip to content

找出一个字符串中的不匹配括号的位置,以json形式输出,位置index从0开始 #144

Description

@sisterAn

找出一个字符串中的不匹配括号( {[()]} )的位置,以json形式输出,位置index从0开始。

  • 异常输入
    ${{(3+5)*2+(5/(24)}
    
  • 输出
    {
        1: '{',    
        11: '(',    
    }
    
  • 正常输入
    [a+b]/${x}
    
  • 输出
    {}
    

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions