Skip to Content
0
Former Member
May 30, 2008 at 08:33 AM

regex

27 Views

Hi,

How can I search exactly for f+ in the

'xcdf+fdfrfv' ?

I get right here sy-subrc 0 and its wrong.

I am searching for f+ and not for f

Regards

sas

DATA: moff TYPE i,
      mlen TYPE i,
      s type string.

    s = 'f+'.

FIND REGEX s IN 'xcdfedfrfv'
     MATCH OFFSET moff
     MATCH LENGTH mlen.