#
ドキュメント

Document

自分のための備忘録です。
// 最長マッチ

const target:string = 'abc123';
const regex  = /([0-9a-zA-Z]+)([0-9]+)/;
console.log(target.match(regex));
// [LOG]: ["abc123", "abc12", "3"] 
// 最短マッチ

const target:string = 'abc123';
const regex  = /([0-9a-zA-Z]+?)([0-9]+?)/;
console.log(target.match(regex))

// [LOG]: ["abc1", "abc", "1"]