S
swalia
Unregistered / Unconfirmed
GUEST, unregistred user!
MeMo.Text中输入
NI13632323232/p1
NI13711111111/p3
NI13832323232/P2
for vPo:=0 to Memo.Lines.Count-1 do
myExpr := TRegExpr.Create;
myExpr.Expression := 'NI([^P]*)/P'''+vPo+'''';
if myExpr.Exec(d) then
repeat
listbox2.Items.Add(myExpr.Match[1]);
until not MyExpr.ExecNext;
得不到/p123顺序排列把P'''+vPo+'''删除了就能显示
应该怎么处理后能够得到1,2,3顺序排列里面的手机号码呢??
NI13632323232/p1
NI13711111111/p3
NI13832323232/P2
for vPo:=0 to Memo.Lines.Count-1 do
myExpr := TRegExpr.Create;
myExpr.Expression := 'NI([^P]*)/P'''+vPo+'''';
if myExpr.Exec(d) then
repeat
listbox2.Items.Add(myExpr.Match[1]);
until not MyExpr.ExecNext;
得不到/p123顺序排列把P'''+vPo+'''删除了就能显示
应该怎么处理后能够得到1,2,3顺序排列里面的手机号码呢??