logoalt Hacker News

chuckadams01/16/20260 repliesview on HN

Java's Pattern.match() method works that way. Python has two separate methods: re.match auto-anchors, re.search does not.