cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SandraSoniec
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

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
ChristianAbata
Super User
Super User

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

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,611)