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: Loop a regular expreesion found within text file
Topic Summary:
Created On: 09/11/2011 04:23 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.
 09/11/2011 04:23 PM
User is offline View Users Profile Print this message

Author Icon
GrantMccormack
Journeyman (50-99)

Posts: 52
Joined: 05/09/2011

Hi

Is it possible to explain how i can extract all items found from a regular expression.

I am looping the files then reading and am then finding the text i require i need, i have tried to loop the count, i have also tried looping the file contents but have had no joy at all with this

I can vie wthe first item found but i cannot view there after in the text.

The obvious choice is loop the file, read the text of each, apply the regex, if found loop the number of results found

Please help as this is driving me mad

Many thanks

Grant  



 Category Survey
 09/11/2011 11:10 PM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Grant,
might this help ?

 Category Survey



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


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
 09/12/2011 02:36 AM
User is offline View Users Profile Print this message

Author Icon
GrantMccormack
Journeyman (50-99)

Posts: 52
Joined: 05/09/2011

Hi Jean

Many thanks for your response.

I have entered your code and it works great, but i still cannot manage this on the files.

How to do i implement this within a loop of file.

Sorry for acting dumb, as i know the answer is in front of and cannot see for looking

Grant



 Category Survey
 09/12/2011 03:49 AM
User is offline View Users Profile Print this message

Author Icon
GrantMccormack
Journeyman (50-99)

Posts: 52
Joined: 05/09/2011

Jean

I have resolved this

many thanks for your input

Grant



 Category Survey
 09/12/2011 11:53 AM
User is offline View Users Profile Print this message

Author Icon
JeanDelfosse
Supreme Guru (1000+)

Posts: 8883
Joined: 03/30/2005

Happy you got it working, Grant

 Category Survey


-------------------------
Jean Delfosse - Automate Beta Tester
Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4
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 1089 guests browsing this forum, which makes a total of 1089 users using this forum.

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

Sitemap Network Automation Software Blog