我试图使用公式Tex中的trim选项分离子弹点描述?

问题描述 投票:0回答:1

我想使用NetSuite TRIM的这种类型的功能(LEADING''FROM REGEXP_SUBSTR({storedescription},'[^:] +',1,2))将子弹点与保存搜索结果分开。或者你能否告诉我什么是子弹点的REGEXP_SUBSTR(

  • 在UI)。 This is my store description on inventory item This is my inventory item save search result
  • regex oracle netsuite
    1个回答
    0
    投票

    您可以在正则表达式中使用文字项目符号来获取除项目符号以外的任何数据。它的工作原理应该如此。

    查询: SELECT REGEXP_SUBSTR('• This is first bullet point, • this is second bullet point','[^•]+',1,1) from dual;

    您可以在Toad或SQL Developer中运行的查询,它将在项目符号点后返回第一个值的结果。您需要将最后一位数字增加为2,3,依此类推,根据您对字符串的需要。如果你这样做

    SELECT REGEXP_SUBSTR('• This is first bullet point, • this is second bullet point','[^•]+',1,2) from dual;

    然后它将在子弹点之后取第二个值。

    例: Demo

    © www.soinside.com 2019 - 2024. All rights reserved.