Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: issue with find operation when searching character strings

$
0
0

No problem, you can go for this,

V_VALUE  ' ABC DEFG HIJK JKLM NOPQ RST'.

V_SEARCH = 'RST'.

 

CONCATENATE '\b' V_SEARCH '\b' INTO V_SEARCH.

FIND REGEX V_SEARCH IN V_VALUE.

 

IF SY-SUBRC = 0.

  WRITE 'matched'.

ENDIF.

OR

FIND REGEX '\b' && V_SEARCH && '\b' IN V_VALUE.

 

Hope this helps.


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>