RegexWars
Tier 4 · Enchantercapture

Read The Config

Capture the key and the value from a "key = value" line, whatever the spacing.

Group 1 is the key, group 2 is everything after the equals sign.

Your pattern0 chars · par 16
//
Flags
Start typing — tests run as you go.0 of 4 visible tests passing
Test cases
  • host = localhost→ ["host", "localhost"]
  • port=8080→ ["port", "8080"]
  • name = William Forty→ ["name", "William Forty"]
  • no equals sign heremust not match

+ 3 hidden tests, checked when you submit. They are what stops a pattern that only fits the examples above.