Coder Social home page Coder Social logo

Comments (4)

iantrich avatar iantrich commented on August 14, 2024

The regex feature currently is just for display of the field in question, it does not filter actual entries based on any regex, currently.

from list-card.

rpitera avatar rpitera commented on August 14, 2024

Bummer. Still would like to know more about how it works, even if it doesn't solve my problem. I have to assume you had a good reason for including it as a feature in the original release and it seems a shame for me not to put it to use! :)

from list-card.

iantrich avatar iantrich commented on August 14, 2024

Here's an example from my personal configuration:

              - type: custom:list-card
                entity: sensor.upcoming_shows
                title: Upcoming Shows
                columns:
                  - title: ''
                    field: title
                    regex: >-
                      [0-9]{1,2}[Xx][0-9]{1,2}

Which takes a string like Manifest 1x06 "Off Radar" and gives everything after the season/episode numbers, i.e. the title of the show "Off Radar"

It's just 100% regex matching against a string

from list-card.

rpitera avatar rpitera commented on August 14, 2024

Thanks for taking the time. I can see where that would be useful - maybe you could include this example in the readme for others. There are plenty of lurkers who aren't comfortable admitting they don't know. I don't suffer from this delusion so I have no problems asking; I'd rather learn something. LOL

Again, I really appreciate this combo and I'm looking back at ideas I had for incorporating data that I couldn't do before. Thanks. If you ever consider adding filters (if that's even possible), please consider me a willing beta tester!

from list-card.

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.