I would like to change this AAAA / BBBB /CCCC / DDDD pattern to this: BBBB / CCCC / DDDD
for exemple an adress like: Daniel Boone / 8888 Riverview Dr / Calgary / CA
to 8888 Riverview Dr / Calgary / CA
Any help ? Thanks in advance
I would like to change this AAAA / BBBB /CCCC / DDDD pattern to this: BBBB / CCCC / DDDD
for exemple an adress like: Daniel Boone / 8888 Riverview Dr / Calgary / CA
to 8888 Riverview Dr / Calgary / CA
Any help ? Thanks in advance
Use Split on /
How about the following?
String.Join("/", strInput.Split("/"c).Skip(1).Select(Function(e) e.Trim()))
BTW: if you want with the spaces just remove the .Trim() like this
String.Join("/", strInput.Split("/"c).Skip(1).Select(Function(e) e))
Regards!
Hello
You could use a ‘Regex.Replace’. Match the starting text you need then replace with nothing (“”).
Insert the following into an assign activity.
Left Assign:
str_Result
Right Assign:
System.Text.RegularExpressions.Regex.Replace(yourStr, “^[\/]+\/\s+”, “”)
Preview the link here:
Cheers
Steve
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.