SAP ABAP - Remove Special Character With Regex

REPORT yregex.

DATA mystring1 TYPE string.
DATA mystring2 TYPE string.

mystring1 = 'mystringa)aksak*1<>!@#$%^&*()~'.
mystring2 = 'mystringa)aksak*1<>!@#$%^&*()~'.

REPLACE ALL OCCURRENCES OF REGEX '[^0-9a-zA-Z]+' IN mystring2 WITH space.

WRITE:/ mystring1.
WRITE:/ mystring2.



Comments

Popular posts from this blog

PHP MySql CRUD Dengan Konsep MVC

Laravel - Sistem Informasi Perpustakaan Sederhana Laravel

IT Asset Management Dengan PHP MySQL