printj/bits/02_regexp.js

4 lines
351 B
JavaScript

var REGEX/*:RegExp*/ = /%(?:%|([1-9]\d*\$)?([-+ 0#']*)?([1-9]\d*|\*(?:[1-9]\d*\$)?)?(?:\.(\d+|\*(?:[1-9]\d*\$)?))?(hh?|ll?|[LzjtqZIw])?([diouxXfFeEgGaAcCsSpnDUOmbByYJVT]))/g;
/* |A-----------AB----------BC---------------------------CD----------------------------DE-------------------EF---------------------------------F| */