cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REGEX - How to Replace special case

SiegfriedW
Participant
0 Likes
475

Dear specialists,

I have following problem. I have a file in the following format:

s0009214902_0-1716983749420.png

I want to upload it into SAP and want to split with the seperator ,

Now I have the problem, that in the amount the decimal sign is also ,

Is there a way to replace the , (seperator) to ; with REGEX?

Best Regards

Sigi

Accepted Solutions (0)

Answers (1)

Answers (1)

RaymondGiuseppi
Active Contributor
0 Likes

So you'd like to replace all occurrences of a character (,) unless it's enclosed in quotation marks ("), which won't be easy and code won't be very readable.

Couldn't you ask the file sender to stick to a more stict CSV format?

SiegfriedW
Participant
0 Likes
This is exactly what I want. The problem is, that I receive the file from a Payment Service Provider as a csv-file. And there is no possibility to change this