2013年10月17日 星期四
Adding a zero to single digit variable
for i in 0{1..9} {10..20} ; do echo $i ; done
http://stackoverflow.com/questions/5099119/adding-a-zero-to-single-digit-variable
2013年10月7日 星期一
PASCAL 的 REGEX
uses RegExpr;
procedure myregex()
var
savePath: string;
const
Template = '.*/(.*$)?';
with TRegExpr.Create do try
Expression := Template;
if Exec (trim(EDITURL.Text)) then
begin
viaHttpVBS := Match[1] ;
//showmessage(viaHttpVBS);
end;
finally Free;
end;
END;
procedure myregex()
var
savePath: string;
const
Template = '.*/(.*$)?';
with TRegExpr.Create do try
Expression := Template;
if Exec (trim(EDITURL.Text)) then
begin
viaHttpVBS := Match[1] ;
//showmessage(viaHttpVBS);
end;
finally Free;
end;
END;
訂閱:
意見 (Atom)