Hi,
I’m haing a problem tokenizing a flat file using the webMethods services.
The file contains a number of fields (some may be empty):
field0| field1| field2||field4|||field7
I would expect pub.string:tokenize to give me a list as (when tokenizing by |):
0 field0
1 field1
2 field2
3 null or blank
4 field4
5 null or blank
6 null or blank
7 field5
However, it is skipping the null values to give me:
0 field0
1 field1
2 field2
3 field4
4 field5
I considered using pub.string:replace to replace all “||” with “| |”, but I also need to check for “|||”, “||||”, etc. I am having difficulty using a regex search to solve this problem.
Any help would greatly be appreciated.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB