logo
  • 教程列表
  • SO官方文档
  • 正则表达式
    • 用谓词函数评估正则表达式
    • 替换
    • 面向对象的正则表达式
    • 使用 OO-Regular 表达式获取子匹配
    • 搜索
  1. StackOverflow 文档
  2. ABAP 教程
  3. 正则表达式
  4. 用谓词函数评估正则表达式

用谓词函数评估正则表达式

Created: November-22, 2018

谓词函数 matches 可用于在不使用任何对象声明的情况下动态评估字符串。

IF matches( val = 'Not a hex string'
            regex = '[0-9a-f]*' ).
  cl_demo_output=>display( 'This will not display' ).
ELSEIF matches( val = '6c6f7665'
                regex = '[0-9a-f]*' ).
  cl_demo_output=>display( 'This will display' ).
ENDIF.
  • 替换
  • 正则表达式

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明