void strLastOccr(char inputStr[100], char* outputStr, char *delim){
char value[100],*temp, *temp2; int i = 0; temp = ""; while (temp!=NULL){ if(i==0){ temp2 = temp; temp = (char *)strtok(inputStr,delim); i++; }
if(i>0){ temp2 = temp; temp = (char *)strtok(NULL,delim); } lr_save_string(temp2,outputStr); }
} Action()
{
lr_save_string("https://mail.google.com/mail/?hl=en&tab=wm#inbox", "InputName");
lr_output_message("原始字符串值=\"%s\"",lr_eval_string("{InputName}"));
strLastOccr(lr_eval_string("{InputName}"), "OutputProjName", "/");
lr_output_message("分割后的字符串=\"%s\"",lr_eval_string("{OutputProjName}")); return 0; return 0;
}
深圳湖北籍软件测试群 275212937