【问题标题】:Removing \t\t\t from sample\t\t从样本中删除 \t\t\t\t\t
【发布时间】:2017-05-27 16:05:53
【问题描述】:

您好,我正在使用 js,我想从结果中删除 \t\t\t。

我已经尝试过正则表达式...它不起作用。

【问题讨论】:

  • 发布你正在使用的代码,你有什么,你得到什么,你想要什么。 it not working 有点模糊。
  • 向我们展示您的尝试。这不是代码编写服务。
  • -value - vVal = saple\t\t -regex- vVal = namere.replace(/\t+/g, ""); -result- saple\t\t
  • 用你的代码更新你的问题

标签: javascript regex


【解决方案1】:

试试这个:

str = str.replace(/\t/g, "");

g 标志将全局搜索 \t。

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 2012-05-06
    • 1970-01-01
    • 2019-03-05
    • 2012-05-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多