Delphi System.Masks.MatchesMask 简单的正则用法


本文整理自网络,侵删。

 
uses System.Masks;

procedure TForm1.Button1Click(Sender: TObject);
begin
if System.Masks.MatchesMask(Edit1.Text, '[a-z]') then
    ShowMessage('a z OK.')
  else
    ShowMessage('a z NO.');
end;

相关阅读 >>

Delphi 新建一个txt文档函数

Delphi循环移位操作

Delphi 如何使用sendmessage发送后台组合键消息(ctrl+xxx)

Delphi bytestofile

Delphi 7 中的随机函数

Delphi 系统任务栏 窗口状态显示进度

monthdays:给出一个月的天数

Delphi 10.3.x与android 10兼容性的问题

Delphi获取flash文件的影片时长,原始尺寸,帧数等信息

Delphi获取桌面图标

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...