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

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (4,316)