Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Need to Parse text by delimiter
Topic Summary: Parse text by delimiter
Created On: 02/02/2017 07:15 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by JerryFeldman, on Thursday, February 2, 2017 8:22 AM

Answer:
Great, thank you. Works perfectly.
 02/02/2017 07:15 AM
User is offline View Users Profile Print this message

Author Icon
JerryFeldman
Apprentice (20-49)

Posts: 50
Joined: 06/02/2011

I have a variable that has 3 periods as delimiters, such as
egdmeu.xyzprd.sto123f.abc12345

I need to parse each part into separate variables based on the delimiter.

Any assistance would be appreciated.

 Category Survey
 02/02/2017 08:12 AM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi Jerry,

You can use the Split function to separate a string of text by a deliminator you specify.

Using you sample string, egdmeu.xyzprd.sto123f.abc12345, you would use %Split(varText, ".")(0)% to get the first segment of text before the period. The split command breaks down as follows.
Split(text to be split, "deliminator")(segment after the first deliminator)

An example is illustrated in the steps below.

 Category Survey
AutoMate 9 version:
Windows version:



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------

Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 02/02/2017 08:22 AM
User is offline View Users Profile Print this message

Author Icon
JerryFeldman
Apprentice (20-49)

Posts: 50
Joined: 06/02/2011

Answer Answer
Great, thank you. Works perfectly.

 Category Survey
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 6686 on 11/01/2020 at 01:24 AM.
There are currently 3119 guests browsing this forum, which makes a total of 3119 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog