cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Split string only at first delimiter

Hi community,

Have a string that contains 2x space. Would like to split the string using ONLY the first space as delimiter. Is this possible or do I have to replace the second space before using the split function?

Thxs in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

hi @ChristianAbata 

example string "ISO 11137:1995/Amd 1:2001", would like to keep "11137:1995/Amd 1:2001".

experimented with other string expressions and one solution that works is

  • calculate indexOf (first space)
  • calculate length(ISO 11137:1995/Amd 1:2001)
  • substring(ISO 11137:1995/Amd 1:2001, indexOf(first space), sub(length, indexof)) 

Have a nice weekend

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

hi @SandraSoniec  friend please could you share what you need to split? the original string? 

 

What I could imagine is something link this :  This is my  string

 

and what I'll do to split the double space is something like this replace('MYSTRING','  ', ' ') then use split('RESULT BEFORE', ' ')



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted

hi @ChristianAbata 

example string "ISO 11137:1995/Amd 1:2001", would like to keep "11137:1995/Amd 1:2001".

experimented with other string expressions and one solution that works is

  • calculate indexOf (first space)
  • calculate length(ISO 11137:1995/Amd 1:2001)
  • substring(ISO 11137:1995/Amd 1:2001, indexOf(first space), sub(length, indexof)) 

Have a nice weekend

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,938)