Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SkiFire13
6 days ago
|
parent
|
context
|
favorite
| on:
Supply Chain Vuln Compromised Core AWS GitHub Repo...
Sometimes I wish regexes were full matches by default and required prefixing and postfixing with `.*` to get the current behaviour
chuckadams
5 days ago
|
next
[–]
Java's Pattern.match() method works that way. Python has two separate methods: re.match auto-anchors, re.search does not.
reply
ruined
6 days ago
|
prev
[–]
a match isn't boolean, it's substring. the original (and more common) use-cases would become excessively verbose
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: