Can you specify a pattern prefix with alternating suffixes in grep? E.g. grep -E "prefix_suffix1|suffix2|suffix3". My understanding of such a command is that it would match line with "prefix_suffix", "suffix2", and "suffix_3"
@Ungeheuer I think you'd want to group them, if I'm understanding you correctly: grep -E 'prefix_(suffix1|suffix2|suffix3)' so that the alternation only applies to the various suffixes
woops, sorry about the bonus ^ anchor; I'll remove it
Unfortunately, for historical reasons, different tools have slightly different regular expression syntax, and sometimes some implementations have extensions that are not supported by other tools. While there is a common ground, it seems like every tool writer made some different choices.
The con...
> Precedence Repetition takes precedence over concatenation, which in turn takes precedence over alternation. A whole expression may be enclosed in parentheses to override these precedence rules and form a subexpression.
> Alternation Two regular expressions may be joined by the infix operator |; the resulting regular expression matches any string matching either alternate expression.
it's unfortunate that the man page doesn't put some literal parenthesis in there, since that's what I was searching for in trying to answer you :)
another instance of things being easier to find if you already know what they are
I'm sure you're all familiar with Z̃͗̇̚͟Ḁ̬̹̈̊̂̏̚L̜̼͊ͣ̈́̿̚G̱̮ͩ̃͑̆ͤ̂̚Õ̷͇͉̺̜̲ͩ́ͪͬͦ͐ ̪̀ͤͨ͛̍̈͢ĝ̭͇̻̊ͮ̾͂e̬̤͔̩̋ͮ̊̈ͭ̓̃n͖͎̘̭̯̳͎͒͂̏̃̾ͯe͕̖̋ͧ͑ͪ̑r̛ͩa̴͕̥̺̺̫̾ͭ͂ͥ̄ͧ͆t͍̻̘̆o͓̥ͤͫ̃̈̂r̹̤͇̰̻̯̐ͮ̈́ͦ͂͞. If not, you can play with the classical generator a bit. Zalgo text is unicode text that started as English text and ha...
@Ungeheuer I think you've made a typo. Surely you meant: H̤͔̰̣͇̦̥ͧ̈́ͩͫ̈́ͤa͚ͥi͈̙̙̖̗̎l̟̮̜̟͙̂͂̋̐̿ͬ ͫF̻̜ͨ́̔ͫͤǐ͔͔̖͔̬̀͑ͯ́ͪͅr̪̮e͎͓̯͇̠͕͖ͣ͂̌̀̚f̲͙̯̖̯̾ͯ̋̈́ͯ̚ox̊ͭͬͤ,̖͓̠ͮ̔ͣ̏̃̓ ̖̞͕͊ͪ͒ͦ̃t̬̗̩̰̩ͭͯͨh̰̫͍ͥ̔͛̎́é̩̰̋͊͗ͫ̓ ̾̊͛̀̽̒͋b͕̮̣̻͇͈̭ͤ̉e͍̦̯̝ͩ̈s͖͆͗ͪͧ̌ͯt̬͇ͬ̇ͣ̎͛ͅ ̬̂̓̐b̥̭ͫ̒̒̏r̯̩̼̯̽̓ͤ̐ͩ̚o̬̦̐ͦ̀̓̏̑̈w̘̞͓̟̖͔̬̓s̼̺̍̂ͯe̜ͫ̄̑͆̑̀ͪr̞̝͆̆
@JeffSchaller Of course I'm not meaning to put pressure on anyone, but I'd like to see more answers (and more viewpoints) there.
I, too, have been thinking about, and even drafting, an answer to my own question for weeks... It basically boils down to a theory of two distinct cleanup workflows, an ordinary one and a trusted one. Which sometimes overlap in the LQPQ. But I'm not finding it convincing yet.
@fra-san I'm not sure I have a good answer, but I'm afraid of putting it off much longer. There's always editing! I'm a few moments away from posting it.
@fra-san I think part of what's bothering me is that "handling the LQP queue" is tied to "deleting Answers in general". I've mainly answered in the "LQP queue" vein, but it certainly leaves open a thread of "outside of the LQP queue, when should I flag/vote to delete an answer?"
@MichaelHomer should I expand on that point some more? I intended to address concerns people might have with saying "This look OK!" to an answer that they don't feel is correct or good enough.