2009 Feb 04 9:29 AM
Hi All,
I have a requiremnt in FInd statment using REGEX.
i have values like this
B1;;2009/11 Claim: 007324;SA;20081006;20091101;I004;;1032000MAR;;750;31;500481;Michael 30/07/2008;999999;EUR;247.79;007324;;;;;;K;;;FIE01240;FB01;S178740019800000011;J;200911;;
I want to find 'I004' in this record using Find Regular expressions
with out using classes.
Can anybody please help me.
Thanks
Hi All,
I have a requiremnt in FInd statment using REGEX.
i have values like this
B1;;2009/11 Claim: 007324;SA;20081006;20091101;I004;;1032000MAR;;750;31;500481;Michael 30/07/2008;999999;EUR;247.79;007324;;;;;;K;;;FIE01240;FB01;S178740019800000011;J;200911;;
I want to find 'I004' in this record using Find Regular expressions
with out using classes.
Can anybody please help me.
Thanks
2009 Feb 04 9:34 AM
DATA: itab4 TYPE TABLE OF string,
results TYPE match_result_tab.
data: v_var2 type string.
data: mcnt type i.
v_var2 = 'B1;;2009/11 Claim: 007324;SA;20081006;20091101;I004;;1032000MAR;;750;31;500481;'.
append v_var2 to itab4.
FIND ALL OCCURRENCES OF 'I004'
IN TABLE itab4
MATCH COUNT mcnt
RESULTS results.
Edited by: abap on Feb 4, 2009 10:35 AM
2009 Feb 04 9:41 AM
2009 Feb 04 9:43 AM
hi,
just include regex
FIND ALL OCCURRENCES OF REGEX 'I004'
IN TABLE itab4
MATCH COUNT mcnt
RESULTS results.
2009 Feb 04 9:50 AM
Hi,
REGEX is not a simple expresssion.I know how to write find but REGEX contains special charcters.
The value may be 'i004' or anything.I want to find it dynamically using FIND regex.
Thanks
2009 Feb 04 10:41 AM
hi,
can explain in detail.
DATA l_string TYPE string.
l_string = '!@@##$%'.
REPLACE ALL OCCURRENCES OF REGEX '[^[:word:]]' IN l_string WITH 'Y'.
Edited by: abap on Feb 4, 2009 11:52 AM
2009 Feb 04 12:00 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |