Comments (12)
Definitely on our list. It's a difficult feature to implement accurately, because JS RegExp does not return any of this information, so we need to tease it out using trickery. Leaving this open for now.
from regexr.
probably the regexp input string have to be split, parsed and run separately for each captured group
oh well, it's much more complicated than i think
from regexr.
It's not that simple. For example:
.*(a)
will match differently than
.*?(a)
will match differently than
.*?
Regular expression tokens are not discrete. They can only be resolved in the context of the full pattern.
On Mar 28, 2014, at 10:14 , stevenp [email protected] wrote:
probably the regexp input string have to be split, parsed and run separately for each captured group
β
Reply to this email directly or view it on GitHub.
from regexr.
Just to add to this - the HiFi tester is completely inaccurate in terms of showing capture groups. They are simply finding the first instance of the group within the match, which obviously isn't correct.
You can test the above example:
.*(a)
in their tester, and see that it highlights the first "a" in the match, when it should highlight the last one.
I'd rather not have this info at all, than have it be incorrect.
from regexr.
Yep, i've got often incorrect results that was differ from browser's JS RegExp, hence all the hopes on regexr ;)
from regexr.
As a quick update on this one, I am currently working on an enhanced tools panel, which could include the table view, or something similar. We're probably not going to get group highlighting in any time soon (it's a huge can of worms to get right, and we'll only put it in if it provides accurate results).
from regexr.
Great news, Grant
from regexr.
Even if you can't associate the captured data with the capture group, it would be helpful just to output the raw result anyway... the equivalent of console.log()
on the match.
from regexr.
I'm actually working on a Details tool at this very moment that will show the full text of a selected match and each group. Does it sound like that will do what you need?
from regexr.
Yes, exactly!
On Dec 14, 2015 11:28 AM, "Grant Skinner" [email protected] wrote:
I'm actually working on a Details tool at this very moment that will show
the full text of a selected match and each group. Does it sound like that
will do what you need?β
Reply to this email directly or view it on GitHub
#6 (comment).
from regexr.
Details shipped in v2.1, so I'm closing this rather belatedly. As a quick note, the Details tool in v3.0 is more robust, especially when using the PCRE engine (which provides position info for groups).
from regexr.
But groups color still not show now , only way to see group is using Detail tools?
from regexr.
Related Issues (20)
- [feature request] automatic gist backup for github users HOT 2
- Extended Unicode escape doesn't seem to accept hexadecimal digits. HOT 1
- Feature request: load expression snippet from query HOT 1
- Save (Ctrl+S) feature doesn't work in some cases HOT 4
- Hope to support multiple languages HOT 1
- Convert Regex value to its string contain HOT 1
- unexpected error on `/\p{Script=Han}/gu` HOT 1
- Site is down with Invalid SSL certificate Error code 526 HOT 2
- The page isnβt redirecting properly HOT 6
- Remove most "may not be supported in all browsers" warnings?
- Lost changes and tests HOT 2
- Feature request: Capability to reorder tests
- Feature request: Add export/import feature
- Feature request: Add 'Match all' option
- Minor issue with Unicode characters in input fields
- Feature request: Special characters display in Tools tab
- Integrate ReDoS checking
- Using named capture groups in list and replace
- Full match not working with some `or` based checks.
- Issue with the online tool on mobile
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.