Hi Friends,
I am trying to find the best possible approach to find out whether the given word has got leading space or trailing space.
For eg: l_word1 = ' SDN'. l_word2 = 'sdn '.
When i run my logic, for l_word1 it should tell me that i have leading blank space for word2 it should tell me that it has trailing space.
for leading space, i am able to find out using the following regular expression in the itab result_tab.
But not able to capture the trailing space indicator, any pointers on this would be of great help.
Thanks, Uday
w_search TYPE string,
w_text TYPE string,
w_text = ' uday bhaskar '.
w_search = '\s'. "'[[:space:]]'.
FIND ALL OCCURRENCES OF REGEX w_search IN w_text RESULTS result_tab.