Lines Matching refs:replace
36 return str.replace(/\s+/g, ' ').trim();
106 .replace(/ski$/, 'ska')
107 .replace(/cki$/, 'cka')
108 .replace(/dzki$/, 'dzka')
109 .replace(/żki$/, 'żka');
135 givn = trim(givn.replace(/,/g, separator));
137 surn = inflectSurname(trim(surn.replace(/,/g, separator)), sex);
184 datestr = datestr.replace(/\s+/g, ' ');
185 datestr = datestr.replace(/(^\s)|(\s$)/, '');
187 datestr = datestr.replace(/(\d)([A-Z])/g, '$1 $2');
188 datestr = datestr.replace(/([A-Z])(\d)/g, '$1 $2');
210 datestr = datestr.replace(/(\d\d)(\d\d)(\d\d)(\d\d)/g, function () {
221 datestr = datestr.replace(/(\d+)([ ./-])(\d+)(\2)(\d+)/g, function () {
242 .replace(/^[>]([\w ]+)$/, 'AFT $1')
243 .replace(/^[<]([\w ]+)$/, 'BEF $1')
244 .replace(/^([\w ]+)[-]$/, 'FROM $1')
245 .replace(/^[-]([\w ]+)$/, 'TO $1')
246 .replace(/^[~]([\w ]+)$/, 'ABT $1')
247 .replace(/^[*]([\w ]+)$/, 'EST $1')
248 .replace(/^[#]([\w ]+)$/, 'CAL $1')
249 .replace(/^([\w ]+) ?- ?([\w ]+)$/, 'BET $1 AND $2')
250 .replace(/^([\w ]+) ?~ ?([\w ]+)$/, 'FROM $1 TO $2')
252 .replace(/JANUARY/g, 'JAN')
253 .replace(/FEBRUARY/g, 'FEB')
254 .replace(/MARCH/g, 'MAR')
255 .replace(/APRIL/g, 'APR')
256 .replace(/JUNE/g, 'JUN')
257 .replace(/JULY/g, 'JUL')
258 .replace(/AUGUST/g, 'AUG')
259 .replace(/SEPTEMBER/g, 'SEP')
260 .replace(/OCTOBER/, 'OCT')
261 .replace(/NOVEMBER/g, 'NOV')
262 .replace(/DECEMBER/g, 'DEC')
264 ….replace(/(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)\.? (\d\d?)[, ]+(\d\d\d\d)/g, '$2 $1 $3…
266 .replace(/(^| )(\d [A-Z]{3,5} \d{4})/g, '$10$2');
589 txt = txt.replace(/(^\s*)|(\s*$)/g, ''); // trim
590 txt = txt.replace(/ /g, ':'); // N12 34 ==> N12.34
591 txt = txt.replace(/\+/g, ''); // +17.1234 ==> 17.1234
592 txt = txt.replace(/-/g, neg); // -0.5698 ==> W0.5698
593 txt = txt.replace(/,/g, '.'); // 0,5698 ==> 0.5698
595 txt = txt.replace(/\u00b0/g, ':'); // °
596 txt = txt.replace(/\u0027/g, ':'); // '
598 txt = txt.replace(/^([0-9]+):([0-9]+):([0-9.]+)(.*)/g, function ($0, $1, $2, $3, $4) {
606 txt = txt.replace(/^([0-9]+):([0-9]+)(.*)/g, function ($0, $1, $2, $3) {
613 txt = txt.replace(/(.*)(NSEW])$/g, '$2$1');
652 replace: function (url, uriEncodedQuery) { method
660 const extra = element.options[element.selectedIndex].value.replace(/@/g, '');