News for hackers. Stuff that matters.
Re:Needle: A DFA Based Regex Library That Compiles to JVM By... by MrBuddyCasino on Wednesday May 08, 2024 @09:08AM (#40297687)
Kotlin isn't too bad, you can avoid double-quoting and use .toRegex() on strings:

    val regex = """([\w\s]+) is (\d+) years old""".toRegex()

There are no comments on this comment yet.