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

Re: Issue with regrex statement

$
0
0

Hi Naimesh Patel

The ending of pattern is just one character (comma).

We can get rid of greediness in this case by negating comma.

DATA lv_str TYPE string VALUE 'USERID/0XSABUYER,USERNAME/0TXTSH,SUPERVISORID/0XARDUMMY'.

REPLACE ALL OCCURRENCES OF REGEX '/0[^,]*' IN lv_str WITH ''.

WRITE:/ lv_str.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



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