Remove Carriage Return

Hi guys,

I’m using the follow Screening Rule RegExFind(“(?s)(?<=)(.*)(?=)”, “v_data1”) to capture na information that was between and tags.

The result of this rule is v_data1 ='Data1; Data2 ; Data3;

Data4;’

There is a carriage return in the text.

I couldn’t remove the carriage return using StrReplace[v_data1, Char[10], ‘’] or StrReplace[v_data1, Char[13], ‘’].

There is a way to remove these carriage return in Regex or in the IRD?

Try both char codes in one string replace.

I did a research in Genesys Care and I found this:

“There is no availability to remove line breaks using StrReplace function”

I really don’t know RegEx very well, there is a way to remove line breaks using RegEx? As I know, Screening Rules don’t allow the method replace, just find.

There is another way to remove these line breaks from an attach data?

The fastest thing (and stupidest) that comes into my mind is to break the attach data into separate pieces using the character/word/length and then trim them out from each separate key and then assemble again, if need to.

We had something similar a while back; however, we handled it on an app side that was giving us CRLF. We replaced them with

Vic

Basically StrReplace replaces any chars (if their code is known) including line breaks.
Did you try something like following sequence:
v_data1 = StrReplace[v_data1, Char[13], ‘’]
v_data1 = StrReplace[v_data1, Char[10], ‘’]

If it doesn’t work - may be first checks which exactly codes presents line break - codes= Bytes[v_data1, 10].