Arkregex: a Drop in Replacement for New Regexp() with Types
Posted2 months agoActive2 months ago
arktype.ioTechstory
supportivepositive
Debate
20/100
TypescriptRegular ExpressionsStatic Type Checking
Key topics
Typescript
Regular Expressions
Static Type Checking
ArkRegex is a typed alternative to JavaScript's RegExp, aiming to improve type safety and developer experience, with HN commenters showing interest and discussing its potential applications and limitations.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
23m
Peak period
2
0-1h
Avg / period
1.3
Key moments
- 01Story posted
Oct 28, 2025 at 12:06 PM EDT
2 months ago
Step 01 - 02First comment
Oct 28, 2025 at 12:29 PM EDT
23m after posting
Step 02 - 03Peak activity
2 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 28, 2025 at 8:21 PM EDT
2 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45734690Type: storyLast synced: 11/17/2025, 8:07:06 AM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Subexpressions like `\\w` or `[a-Z]` would just be inferred as `${string}`, but that doesn't mean the inference won't be useful. For example:
expression: regex("^\\w+@\\w+\\.\\w+$") type: Regex<`${string}@${string}.${string}`>