Coder Social home page Coder Social logo

Comments (4)

designermonkey avatar designermonkey commented on May 26, 2024

After reading your answer, and thinking, the question arises that if we were to do this, how would we advise to terminate the regex statement?

Because normal characters can be used, a user would possibly expect to use , or + in their statement too. How do users get to use these characters normally? Are they escaped somehow??

from symphonycms.

brendo avatar brendo commented on May 26, 2024

You can urlencode them and they'll work. I've had to do it before with date filtering, aka. later than today + 1 week

It's an interesting point, I suppose at the moment if you use a , or + in a regexp it will probably break the filtering.

from symphonycms.

designermonkey avatar designermonkey commented on May 26, 2024

Yeah. The way regex was meant to work originally was to take the entire string after the regexp: string and check for that, but like you say, I'm not sure what would happen using + or, at present.

I asked the question merely to prompt debate on it, but it is very advanced filtering, which may just bring more confusion to the table, which we obviously want to avoid.

I have got around my issue by customising the DS slightly to check for the existence of the params and alter the filter based on that.

from symphonycms.

brendo avatar brendo commented on May 26, 2024

Going to close this, regexp: is a bit of an oddity and I agree with you, it's pretty advanced filtering :)

Perhaps this style of filtering can be revisited after potential datasource changes with #699

from symphonycms.

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.