select
u_id,
case
when work_start > '2012-12-01'::date then work_start
else '2012-12-01'::date
end::date + generate_series(1, 31) - 1 as ndate
from n_users
where
u_id = 300 4 sty 2013
select
u_id,
case
when work_start > '2012-12-01'::date then work_start
else '2012-12-01'::date
end::date + generate_series(1, 31) - 1 as ndate
from n_users
where
u_id = 300 select
a_title,
regexp_replace(a_title, ' +', ' ', 'g')
from articles
where
a_status = 't'
and a_title ~ ' '
update articles
set
a_title = regexp_replace(a_title, ',', ' ')
where
a_status = 't'
and a_title ~ ','
update articles
set
a_title = regexp_replace(a_title, ' +', ' ', 'g')
where
a_status = 't'
and a_title ~ ' ' $test='http://kody.wig.pl/strony-stare-2006_11-all.html';
$test='http://kody.wig.pl/strony-nowe-2012_11-1233.html';
echo $test;
preg_match("/(-(?P([0-9]+|all)))?\.html$/", $test, $back);
print_r($back); MsgBox Selection.Addresslub
Dim adr As String
adr = Selection.Address
MsgBox adr var name_srch_comma = name_srch.replace(RegExp(", *","g"), '|');
//name_srch_comma = name_srch_comma.replace(',',', ');
var re=new RegExp("("+name_srch+")","gi");
var re_c=new RegExp("("+name_srch_comma+")","gi");
var tmp_data=data.split("");
console.log("("+name_srch_comma+")"); // (Warszawa|Polna)desc=tmp_item[0]+', '+tmp_item[3];
desc=desc.replace(re_c,"<strong>$1</strong>");Tworzenie ze złączenia stringów wyrażenia dla RegExp