String Split Options ')' expected

Hey there guys I’m using this expression but i see a red line undre StringSplit and it says ')'expected. i counted all the parans and they match, same number on the left and same on the right… In thanks in advance for your help!

expression but i get

Hi @olmccb

kindly share your expression here so we can give your the solution



There seems non-0x22 double quote and it might be cause. Can you try to replace (re-type) double quote with " (0x22) (Please copy and paste if necessary)


The following expression might be better than using Join and Split.

System.Text.RegularExpressions.Regex.Replace(phoneNumberOutput,"\s+"," ").Trim


hello @fernando_zuluaga my expression was:
contactPhone = String.join(" “,phoneNumberOutput.Split({Environment.NewLine,vbcrlf,vblf,” ",vbtab,vbcr,vbNewLine},StringSplitOptions.RemoveEmptyEntries))
However it was solved Yoichi, thank you for your help!

THANK YOU @Yoichi !!! :heartbeat:

1 Like

Thank you @fernando_zuluaga

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.