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: Regular Expression how to get text content that between third comma and fourth comma?
Topic Summary:
Created On: 01/08/2018 08:00 PM
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.
 01/08/2018 08:00 PM
User is offline View Users Profile Print this message

Author Icon
LiuSki
Student (5-19 posts)

Posts: 14
Joined: 01/03/2011

Regular Expression how to get text content that between third comma and fourth comma?

text like this: 1059,sd,-17.21,-7976.35,3000.00,sde,38130.00,3000.00,a

 Category Survey
AutoMate 10 version:
Windows version:


Edited: 01/09/2018 at 02:09 AM by LiuSki
 01/09/2018 09:56 AM
User is offline View Users Profile Print this message

Author Icon
Alex Escalante
HelpSystems

Posts: 871
Joined: 02/26/2014

Hello Liu,

A few questions, would there always be the same amount of numbers/letters? Will the item you are looking for always contain a "-" sign? If so, will the first number with a "-" sign be the one you will pull?

There a few different solutions depending on your answers. To get you started though, you can enter the data into a variable and use the "loop list" action (comma delimited) to loop through each "section". Again, if you were looking for the first item with a minus sign, you can use an "if" action to find it.

 Category Survey



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


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

Alex Escalante | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 01/09/2018 05:58 PM
User is offline View Users Profile Print this message

Author Icon
LiuSki
Student (5-19 posts)

Posts: 14
Joined: 01/03/2011

they are not the same ,may not contain "-" sign .
but your answer solve my problem !
thank you very much Alex!

 Category Survey
AutoMate 10 version:
Windows version:
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 2016 guests browsing this forum, which makes a total of 2016 users using this forum.

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

Sitemap Network Automation Software Blog