如何使用Smart Mobile Studio中的正則表達式?例如,我如何在Object Pascal中編寫以下示例代碼? var re = /\w+\s/g;
var str = "fee fi fo fum";
var myArray = str.match(re);
console.log(myArray);
如何檢查函數參數是否未定義? procedure Test(aValue: TObject);
begin
if aValue <> nil then
ShowMessage('param filled') <-- also when Test() is executed!
else
ShowMessage('no param filled') <--