Skip to main content
February 9, 2024
Solved

To remove the specific text/string from sentence

  • February 9, 2024
  • 4 replies
  • 0 views

Hi,

I have a value to display and it comes from DB. The value for example is "Consistency Assessment completed – Artwork updates are NOT required – Specify reasons in comments"

SO now before displaying it I have to remove this part "– Specify reasons in comments" and display only "Consistency Assessment completed – Artwork updates are NOT required".

Can some one please help how to strip that comments part.

Thanks in Advance.

    Best answer by harshitb6843

    substitute()

    substitute(
      "Consistency Assessment completed â`“ Artwork updates are NOT required â`“ Specify reasons in comments",
      " â`“ Specify reasons in comments",
      ""
    )

    4 replies

    harshitb6843
    February 9, 2024

    substitute()

    substitute(
      "Consistency Assessment completed â`“ Artwork updates are NOT required â`“ Specify reasons in comments",
      " â`“ Specify reasons in comments",
      ""
    )

    February 9, 2024

    yes Thank you, got it