Comments (13)
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.
It's also hosted at github
https://github.com/javallone/regexper
from regexr.
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.
try to combine both together.
should be very awesome.
from regexr.
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.
+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.
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.
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.
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.
https://jex.im/regulex/ is another, nearly identical tool to look at.
from regexr.
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.
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.
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)
- PCRE engine matches รค (ASCII char 228) to other diacritics
- Separator not working for list tool for PCRE patterns
- Issue with Regex Tool's Lack of Support for Lazy Quantifier "{,M}" Without Lower Limit HOT 2
- Site is down with "connection timed out, Error code 522" HOT 1
- Support for `v` (`unicodeSets`) and `d` (`hasIndices`) flags HOT 3
- Support for named backreferences `\k<...>`
- i love you, whoever made this.
- \n not working as expected HOT 1
- Global indicator not working in tests HOT 1
- When nearby matches are present, hard to see visually.
- full match not working in test
- can't build it? HOT 1
- Hide Text/Tests pane
- Explain PCRE modes like `(?i)` more
- Feature request: Paste lines to be used for tests HOT 2
- Inconsistent / broken pattern matching for unicode letters in PCRE mode
- Feature Request: Change default author
- Cannot delete Pattern created by '[anonymous]'
- [Feature Request] Import multiple tests using a file text or a csv list or json list...
- Chromium browsers cannot append text after space character HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regexr.