====== Stringchecker ====== gefunden: [[https://www.facebook.com/reel/4134641730137940]] {{:notes:type:stringcheck.png?400|}} Das lässt sich ggfs. vielleicht als Konstruktor definieren: rgbstring is string { construct( string="rgb\{{\int(0..255)},{\int(0..255)},{\int(0..255)}}" ); construct( string="#{\int(0..255,hex)}{\int(0..255,hex)}{\int(0..255,hex)}" ); // Nur so formatierte Strings werden akzeptiert }; Wenn sonst kein Konstruktor passt, Exception, bzw. Fehlercode. Das ganze dann mit Regex?