Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cl_abap_regex/cl_abap_matcher #32

Closed
larshp opened this issue Dec 2, 2020 · 1 comment · Fixed by #36
Closed

add cl_abap_regex/cl_abap_matcher #32

larshp opened this issue Dec 2, 2020 · 1 comment · Fixed by #36
Assignees

Comments

@larshp
Copy link
Member

larshp commented Dec 2, 2020

possible workaround: use FIND REGEX

@larshp larshp self-assigned this Dec 10, 2020
@larshp
Copy link
Member Author

larshp commented Dec 10, 2020

need RESULTS, abaplint/transpiler#147

DATA lo_regex TYPE REF TO cl_abap_regex.
DATA lo_matcher TYPE REF TO cl_abap_matcher.
DATA lt_result TYPE match_result_tab.

CREATE OBJECT lo_regex
  EXPORTING
    pattern     = 'aa'
    ignore_case = abap_true.

lo_matcher = lo_regex->create_matcher( text = 'fooaabar' ).
lt_result = lo_matcher->find_all( ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant