GithubHelp home page GithubHelp logo

Can we have regex, please? about stig HOT 3 CLOSED

The-Sound avatar The-Sound commented on August 25, 2024
Can we have regex, please?

from stig.

Comments (3)

rndusr avatar rndusr commented on August 25, 2024

from stig.

The-Sound avatar The-Sound commented on August 25, 2024

Sometimes I'm a little bit dense, but the bit that in theory covers regex would be this one?

  Besides the usual operators (=, !=, >, <, >=, <=), "~" matches if the item's value contains the
  literal string VALUE and "=~" matches if the item's value matches against the Perl-style regular
  expression VALUE.
  Example: "name~foo" matches all torrents with "foo" in their name.

Just asking because I've read a few times that help before opening another issue but maybe I missinterpreted it. Should I go to Perl docs in search of more examples then?

Edit: I'm trying to use it from the inside prompt on an empty tab but I don't think I'm typing it the right way. How would it be from the inside? I don't really use stig from outside itself because my remote instance has password and stuff.

Edit 2: Do you mind if I ask for a little more clarification? I've managed to make the filter work with :list name=~'\\d01-\\d00' and :list name=~'Name \\d01-\\d00' but I'm not entirely sure I got the hand of it, because if I need to seek something that is not exactly Name I don't know how to tell the command "Name, Anything after Name and then \\d01-\\d00"

Edit 3: Sorry for so many edits, seems like all in all, it was my regex skills, although I still think, to my taste, that a quick regex example could be added to filtermanual for brick-dense users like me. Made it work with :list name=~'.\\d01-\\d00'

from stig.

rndusr avatar rndusr commented on August 25, 2024

from stig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.