Skip to Content
0
Jan 23, 2009 at 04:31 PM

Regex

20 Views

I have the following RegEx. I need to split ip numbers alone from the string

data: v_str     type string ,
      t_result  type match_result_tab ,
      wa_result like line of t_result,
      lt_result type match_result_tab.
v_str = 'abc.com:122.11.31.12xyz.com:111.16.1.1sdn.com:123.122.0.4 '.
data matcher type ref to cl_abap_matcher.
matcher = cl_abap_matcher=>create(
  pattern = `d+.d+.d+.d+`
  ignore_case = 'X'
  text = v_str ).
lt_result = matcher->find_all( ).

Any Info?