question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

greedy backreferences

See original GitHub issue

I’m puzzled by two points related to backreferences, which have been introduced by version 0.5 of sphinx-gallery:

I tried to track down when the change appeared, maybe it’s https://github.com/sphinx-gallery/sphinx-gallery/commit/3acd37b716bc5684da0f4f4d7054e2ca0f3d66d8#diff-33215ef937b7c3d86fe0a23425c585e4 but I’m not sure. Happy to dig more if needed but I’d like to know first whether this is a desired behaviour or not.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
larsonercommented, Dec 27, 2019

If the style / busy appearance / aesthetics is the only real problem, we could think about giving the references CSS class names based on their module names like sg-backref-python and sg-backref-sklearn (plus each gets a global sg-backref) based on which package they’re from. Then you can blacklist/whitelist HTML styles of the links as you wish.

1reaction
larsonercommented, Dec 28, 2019

I can take a stab at implementing the CSS classes in the next couple of days

Read more comments on GitHub >

github_iconTop Results From Across the Web

greedy backreference in python's reguar expression?
You can use 4 capture groups, where group infix is only for capturing a single char to be repeated. (?P<prefix>.{0,3}?)(?P<repeat>(?
Read more >
Regular Expression Backreferences and the Non-Greedy ...
The backreference (the "\1" at the end of the regex) behaves exactly the same as when in a replacement string: it represents the...
Read more >
Possessive Quantifiers - Regex Tutorial
A greedy quantifier first tries to repeat the token as many times as possible, and gradually gives up matches as the engine backtracks...
Read more >
Greedy and Lazy Quantifiers - W3docs
In this chapter, we will see how the search works with greedy and lazy quantifiers. Imagine you have a text and need to...
Read more >
Python regex backreferences
The backreferences allow you to reference capturing groups within a regular expression. The following shows the syntax of a backreference: \N.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found