79558824

Date: 2025-04-06 22:49:26
Score: 2.5
Natty:
Report link

Here is a way using the BOL.

`(?m)^if.*\R+(?:^[\t ]+.*\R+)*?^[\t ]+test\.check\(\).*\R?`

https://regex101.com/r/WR9JtI/1

(?m)
^ if .* \R+    
(?: ^ [\t ]+ .* \R+ )*?
^ [\t ]+ test \. check \( \) .* \R? 
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: sln