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 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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (47,142)