标签: regexp-replace

替换配置单元中的PIPE(|)符号

您好我有一个包含管道(|)符号的文本,我想用空格替换它.这是列描述中的文本

| TrueCricketLover | M€$$!| PTI |摩羯座|没有DM | #TeamIK | @shaneRWatson33❤BoomBoom❤努力做一个更好的人类!

我试过像这样的regexp_replace函数

regexp_replace(description,'|',' ')
Run Code Online (Sandbox Code Playgroud)

此命令返回此值

| T rue C ricket L over | M€$ $!| PTI | C apricorn | N o DM | #T eam IK | @ shane RW atson 33❤BOomBoom❤Strivingtobeabetterhum an!L ovehimwholeast D eserves I t,T hat'坐❤

它不是替换管道(|)符号.请帮助.

hadoop hive regexp-replace

1
推荐指数
1
解决办法
3146
查看次数

Autohotkey 和 Windows 10:如何获取当前资源管理器路径

我使用 autohotkey 版本:1.0.48.05(因为我坚​​持使用 activeaid)。读取当前路径的脚本如下(一直工作到 Win 7)。

; Get full path from open Explorer window
WinGetText, FullPath, A

; Clean up result
StringReplace, FullPath, FullPath, `r, , all
FullPath := RegExReplace(FullPath, "^.*`nAddress: ([^`n]+)`n.*$", "$1")
Run Code Online (Sandbox Code Playgroud)

我怀疑在切换到 Win10 时,我似乎也切换了语言。如果我在使用 WinGetText、FullPath、A MsgBox %FullPath% 清理之前将 MsgBox 排除在 %FullPath% 中,我会在其他字符串中看到(显然由 CR 分隔):地址:V:\Vertrieb\Prospects\MyFile

那么我需要如何调整正则表达式来提取那个字符串!

最好的问候汉内斯

autohotkey regexp-replace

1
推荐指数
2
解决办法
2878
查看次数

替换 Kusto 中的 GUID

如何替换 Kusto 查询中没有值的所有 GUID。

例如

我的数据看起来像

/页/1d58e797-a905-403f-ebd9-27ccf3f1d2cd/用户/4d58e797-a905-403f-ebd9-27ccf3f1d2c3

而且我要

/页面//用户/

regexp-replace kql azure-data-explorer

0
推荐指数
1
解决办法
3523
查看次数

':' 冒号在 Oracle 中是什么意思?

 if (:new.first_name is not null) then
       :new.first_name := substr(regexp_replace(:new.first_name,'[^'||chr(1)||'-'||chr(127)||']',null),1,20);
    end if;
Run Code Online (Sandbox Code Playgroud)

有人可以帮助我使用此代码吗?我不明白!

oracle plsql regexp-replace

0
推荐指数
1
解决办法
42
查看次数