Usability when tracking down failures with moderately long expressions #28
Unanswered
claremacrae
asked this question in
Q&A
Replies: 1 comment
-
I got it working in the end, by pruning back the pattern from the end, to see at work point it starting compiling... and then working forward. regexr does not require raw I would still appreciate any thoughts on the layout - and whether perhaps the error message could be displayed inside the settings pane? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Many thanks for this plugin.
Background
I've written tests for this Python re:
\[(GitHub - ){0,1}([A-Za-z-\d)]+)/([a-z\d\-_.]+)(: [^\]]+){0,1}]\(https://github.com/([A-Za-z-\d)]+)/([a-z\d\-_.]+)/?\)
And now I'm trying to port it to JS , to work with Apply Patterns.
What's happening
I've got an expression which works in https://regexr.com
\[(GitHub - ){0,1}([A-Za-z-\d)]+)\/([a-z\d\-_.]+)(: [^\]]+){0,1}]\(https:\/\/github.com\/([A-Za-z-\d)]+)\/([a-z\d\-_.]+)\/?\)
But when I test it in Apply Patterns I get this:
(I've gone through lots of iterations, so seen lots of variations of that kind of message)
And here is what I see in the settings:
I have found explanations of Lone Quantifier brackets - but I'm struggling to understand why an expression that works in regexr might not work on Apply Patterns...
Thoughts
With the combination of only being able to see less than half of my expression in the pattern - and the very long error message only flashing up for a few seconds - I'm still going after some hours to get this working...
I'd really appreciate any advice on fixing that query- but more generally, I wonder whether it might be possible for the layout to be adjust to make more use of the screen width, when it's available?Beta Was this translation helpful? Give feedback.
All reactions