cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

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

Can ":" be a delimiter?

I need to delimit a string that contains a colon ":" as a delimiter.  I can replace all instances with something else.  Can I use it literally?


Slán



SpannerHead
5 REPLIES 5
jthi
Super User

Re: Can ":" be a delimiter?

Not sure what you are trying to do? It is just a character, you can use it how ever you want with strings?

-Jarmo
Thierry_S
Super User

Re: Can ":" be a delimiter?

Hi,

If you try to extract a substring from a string, you can define any delimiter you want (See example below) 

Word( 1, "AAA:BBB:CCC", ":" )

If you need to import a text file with ":" as a delimiter, I suggest uploading the raw text into one column and splitting it using the Column Utilities > Text to Columns (defining the column separator as ":").

If neither approach meets your needs, please share an example of what you are trying to achieve.

 

Best,

TS

Thierry R. Sornasse
SpannerHead
Level VI

Re: Can ":" be a delimiter?

I guess I had the source of the problem defined incorrectly.  If I include ":" as a delimiter together with "_" I seem to be getting red ink and a failed formula.

 

SpannerHead_0-1742495219675.png

 


Slán



SpannerHead

Re: Can ":" be a delimiter?

Hi,

 

If you need to specify multiple delimiters with the Word function, it's a single character string containing all the delimiters. For your example, you would specify ":_" as the third argument to Word.

 

Monica

jthi
Super User

Re: Can ":" be a delimiter?

Ah.. So you wish to have two strings to separate using Word? Add all the delimiters into the same string and it should work

Word(2, "A_B:C", "_:")

jthi_0-1742496186318.png

 

-Jarmo

Recommended Articles