How to replace all linebreaks from a datatable [PAD] - power-automate

I'd like to replace all linebreaks from my whole datatable, but I don't know how to do it...
I tried using 'Replace text' but I accomplished nothing.
my data

You can use decodeUriComponent('%0A') in Replace formula to find "new line" character.
At the end the expression will look like this:
replace(outputs('Compose'),decodeUriComponent('%0A'),'-')
this will replace all "new-line" characters with dash "-".

Related

How to delete quotation mark in text file printed

I'm honestly a novice on scilab.
I'm using print function to create .txt file with my character matrix in it.
But , when I open txt file, double quote appeared. I just want words without "".
This is how I'm using print
Compterendu(1,1)= "Medecin demandeur: "
fileresname= fullfile(RES_PATH, "compterendu.txt")
print(fileresname,Compterendu)
And, compterendu.txt was printed out like this.
Would be so grateful for any help!!
Thanks
Why do you use "print" ? After looking into the doc, yes, it is used to produce the same text as when you type the expression or the variable name on the command line. Hence it does print double quotes for strings. If you need something more basic use lower level i/o commands, like mputl.
S.

Extract Data Without Quotes in iMacros

How to extract data without quotes in iMacros? The following code can remove comma, but still give me quotes sign.
SET !VAR6 EVAL("var s='{{!EXTRACT}}'; s.replace(',', '');")
I am using FF broser. Thanks in advance.
You want to remove ' from your text together with the ,? Your code keeps the quotes, because you don't do anything to replace them. You can use
SET !VAR6 EVAL("var s='{{!EXTRACT}}'; s.replace(/[,']/g, '');")
to replace every occurence of either character. Read up on regular expressions and on replace to tweak this if it's not precisely what you want.

Extracting text between backslashes in webload (or other similar applications?)

In Webload, there is a function extractValue("start","end", source, 1) that basically just extracts any values between a specified start and end point. So for example if you have abcdefg and you want to extract cde you could do extractValue("b","f", source, 1) etc. However, the issue i am having is because webload seems to use backslashes as a marker for quotations, so for example if you had something like
ab"cde"fg you would need to use something like extractValue("b\"","\"f", source, 1) if you only wanted to extract cef.
Now my issue is I have a string like abcde\ and I want to extract only cde, I try something like
extractValue("ab","\", source, 1), however when doing this webload assumes I am not ending my string since it interprets the second quotation in "\" as part of the string.
Does anyone know how exactly I should deal with this if I want \ to be interpreted as part of a string and not as the indicator for the quotation?
Thanks
try using two backslashes like extractValue("ab","\\", source, 1), this is another example for using escape character using backslash in extractValue function
myTitle = extractValue( "<\title>", "</title>",
MyFrame.document.wlSource) backslash title is the title tag..i dont know why it is not getting displayed in the answer.

Custom code highlight Notepad++

I am creating a custom code highlight for notepad++. What I want to do is the following:
some fieldnames are writen in the code with a ' in front of their name, for exampe
if 'variable = "test" then ...
I would like to highlight these words, but notepad++ does not seem to allow a delimiter starting with ' and ending with a space, not does it allow space as an escape character. Also, using ' as a keyword and enabling prefix mode has no effect. Anyone has a suggestion? Should I use another expression to let notepad recognise the space/' ?
Thanks in advance!
If you only need to highlight a single word, you can use a keyword in prefix mode. However when using single or double quotes in a keyword, they need to be escaped with a backslash. So your keyword would be:
\'
This may not be possible in notepad++. I can get the behavior you want using a character other than a single quote, like a back-tic, but it doesn't seem to work with single or double quotes. I suspect those characters are treated special within the syntax highlighter.

How can I strip tab characters from a string in Ruby?

I have a program that loads some tab-separated lines into a MySQL table. One of the values has tabs in it, which is causing some problems. The data is created column by column, so I need to find a way to strip the tab character out of an individual field with gsub. I do not, however, want to get rid of anything else, like spaces.
It's really easy \t is the tab character.
result = string.gsub /\t/, ''
or, in-place
string.gsub! /\t/, ''
\t is the escape character for tabs within strings. So you can just search for "\t" and replace that by a space or something.

Resources