cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
dn610
Level III

Removing punctuation in a string

Hi - can someone help me with a solution for removing the second hyphen in the 1st row in the "Number" column below?

 

 

dn610_0-1743108537077.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Removing punctuation in a string

Have you tried playing around with Recode?

jthi_0-1743108854908.png

Formula like

Word([1 -1], :Column 1, "-")

might also work (and there are plenty of other options).

-Jarmo

View solution in original post

4 REPLIES 4
jthi
Super User

Re: Removing punctuation in a string

Have you tried playing around with Recode?

jthi_0-1743108854908.png

Formula like

Word([1 -1], :Column 1, "-")

might also work (and there are plenty of other options).

-Jarmo
dn610
Level III

Re: Removing punctuation in a string

Thank you! I did look into recode, but I didn't see the options that you're seeing. Is that extract segment popup available in JMP 17?

jthi
Super User

Re: Removing punctuation in a string

I would assume so. It can be at least found from JMP17 help https://www.jmp.com/support/help/en/17.2/#page/jmp/recode-data-in-a-column.shtml#ww1042951

-Jarmo
dn610
Level III

Re: Removing punctuation in a string

I see it now. Thank you!

Recommended Articles