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

  • 關於本站
  • 免責聲明