Giter Site home page Giter Site logo

Comments (13)

stuartpb avatar stuartpb commented on August 19, 2024 1

I could see this being fairly useful as an integrated feature into the Expression line, actually, as it does give another way of reviewing the expression that is arguably neater than the mouseover hints RegExr currently provides.

Maybe I'll look into writing up a PR that could integrate it in such a fashion (it is MIT licensed, after all).

(Insane awesome and only-partially-related feature idea: a "match in slow-mo" button that actually steps through the regular expression engine for the text and highlights each point on the flowchart to show where exactly what logic a match fails.)

from regexr.

 avatar commented on August 19, 2024

It's also hosted at github

https://github.com/javallone/regexper

from regexr.

Nightfirecat avatar Nightfirecat commented on August 19, 2024

What do you want to be "merged"?

regexr and regexper are two entirely different projects - the former is focused on matching sample text, where the latter is focused on creating a graphical representation of a regular expression, and does no matching.

from regexr.

 avatar commented on August 19, 2024

try to combine both together.
should be very awesome.

from regexr.

Gambloide avatar Gambloide commented on August 19, 2024

As @Nightfirecat pointed out these are two completely different tools. Adding regexpers redering feature really wouldn't benefit regexr.

Regexr ist (at least from how I see people using it) a tool used for development, while regexper is quite useless actually. I can only imagine it being useful for educational purposes or visualizing overly involved regular expressions.

Is there really any concrete reason which would justify the devs thinking about implementing this feature, instead of making the existing tools features even more awesome?

from regexr.

benaubin avatar benaubin commented on August 19, 2024

+1 This helps visual thinkers see what their regex does - which helps a lot, and gives a second way of interpreting regex.

Thinking about doing this myself - @stuartpb, if you don't do this, I could.

from regexr.

gskinner avatar gskinner commented on August 19, 2024

How does this compare to our existing Explain feature. What does it offer you that Explain doesn't? Trying to establish a value proposition for this before committing time to any implementation.

from regexr.

stuartpb avatar stuartpb commented on August 19, 2024

As I said two and a half years ago, it gives another way of reviewing the expression that's neater than the mouseover explanations: Regexper's diagrams allow the structure of the entire expression to be read at once, in a way that is directly annotated (for instance, the way "One of:" is placed above a box denoting a character class, instead of having this notion be something implicit that could slip through the cracks in a developer's conception of their regexp when reviewing its parts, piece by piece, in a tooltip).

from regexr.

gskinner avatar gskinner commented on August 19, 2024

Right, and following that input we added the Explain tool in v2.1, which isn't exactly the same, but does provide the single view overview you suggested.

My updated question was in relation to Explain. Does it do what you need? Or are there still aspects of regexper that you miss?

from regexr.

gskinner avatar gskinner commented on August 19, 2024

https://jex.im/regulex/ is another, nearly identical tool to look at.

from regexr.

stuartpb avatar stuartpb commented on August 19, 2024

Ah, okay, I see. Yeah, the "Explain" overview is still too wordy, too sprawling, and not adequately visual (compare the looping arrow around "word" on https://regexper.com/#(%5BA-Z%5D)%5Cw%2B against the abstract cognitive load Explain uses to present the concept: "Plus. Match 1 or more of the preceding token.").

from regexr.

stuartpb avatar stuartpb commented on August 19, 2024

And, yes, the Regulex codebase looks much cleaner to integrate (it's also MIT licensed); that'd be the way I'd integrate this feature today.

from regexr.

stuartpb avatar stuartpb commented on August 19, 2024

One thing I'll say is that, from a UX standpoint, it'd make a lot more sense to me to have this Diagram and/or Explain tool up at the top, next to "Save" and "Share", than at the bottom, beneath the Text that it's not relevant to at all.

from regexr.

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.