English 中文(简体)
从KQL string迁出白色空间:Kusto
原标题:Remove white spaces from a KQL string: Kusto

我有一席之地。

let String = "     Test  "; 

I need an output as below:

产出=试验

I have tried using trim(), trimstart(), trimend()
Only one space has been removed using these scalar functions.

问题回答

请尝试trim with Regexcode>ss:>

let String = " Test ";
print a = String, b = trim(@"s", String)

“entergraph

采用replace_regex(资料来源,lookup_regex, rewrite_pattern)创建工作现场。

Pass the string value as source, lookup_regex as " " (nothing but blank spaces), rewrite_pattern as "" (replace with no space)

<<>Example>>:

投入:让步=“试验”;/间隔期为11

Output is: Test (String length is 4)

- 申请编码





相关问题
读书时空洞白空间

在我从校园网络系统保存的档案中读到一个很长的项目时,在阅读档案时,一切都完美地使国际红十字与红新月联一删除名单上底层的白色空间......

emacs delete-trailing-whitespace except current line

I recently added Emacs (delete-trailing-whitespace) function to my before-save-hook for some programming modes, but I find it rather frustrating that it deletes whitespace from the line I am ...

rails trim whitespace from searchlogic text field

This works: Baseline Controller @search = Baseline.search(params[:search]) @baselines = @search.paginate :page => params[:page], :per_page => params[:per_page] baseline index view <% ...

git - trim whitespace

I ve accidentally put some whitespace in my initial commit - it shows up red in git diff --color. What s the best way to get rid of the existing whitespace and how can I avoid this happening again? I ...

Can I word wrap a URL inside a HTML hyperlink

Is there a way to separate the URL name in a hyperlink so it continues onto the next line? In the application I am using I need to use a long URL and the space is limited so it wraps around to the ...

How can I trim leading and trailing white space?

I am having some trouble with leading and trailing white space in a data.frame. For example, I look at a specific row in a data.frame based on a certain condition: > myDummy[myDummy$country == c(&...

热门标签