Search found 8 matches

by slouw
Tue Jul 18, 2017 12:23 pm
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Perl Find and Replace Regular expression child filter
Replies: 2
Views: 5536

Making the child greedy helps but...

I thought I had fixed things by changing the child filter to greedy It started working with my test environment and it worked (Why?) I tested it with an OR statement as well (STRINGA|STRINGB) and again in testing it was good. Alas when i tried production data I hit the same issue described above for...
by slouw
Tue Jul 18, 2017 7:42 am
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Extract paragraphs/mulple lines of text
Replies: 2
Views: 5132

Re: Extract paragraphs/mulple lines of text

I have worked out an approach to this problem and my attempt is detailed here: http://www.datamystic.com/forums/viewtopic.php?f=17&t=2399 It is not without issue as you will see if you care to look. For those new to TPP I have discovered an VERY useful way to debug. I cannot believe that I have ...
by slouw
Tue Jul 18, 2017 7:38 am
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Perl Find and Replace Regular expression child filter
Replies: 2
Views: 5536

Perl Find and Replace Regular expression child filter

This is related to an attempt to solve this challenge here: http://www.datamystic.com/forums/viewtopic.php?f=17&t=2398 This is the desired outcome for a sample input (D1 below) https://content.screencast.com/users/slouw/folders/Snagit/media/e2876b46-209f-4f5d-ab97-581b9e6cf644/07.18.2017-06.52.p...
by slouw
Mon Jul 17, 2017 12:33 pm
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Extract paragraphs/mulple lines of text
Replies: 2
Views: 5132

Extract paragraphs/mulple lines of text

Hi there I have Cisco debug files and Cisco call manager log files which come in the form of multiple line entries separated by a timestamp at the start of each paragraph. The timestamp can act as a SEPARATOR for the PARAGRAPHS that make up the input text. the inout text has the form 4579958: Jul 11...
by slouw
Wed Feb 03, 2016 1:25 pm
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Mulit line grep
Replies: 1
Views: 5163

Mulit line grep

How can I capture a multi line grep from a text file. There are paragraphs in the file with paragraph start and end signatures which I can identify with Perl regex (my preferred pattern type) as shown in the screenshot. The existing grep filters had an option for .* to match carriage returns then I ...
by slouw
Thu Jun 18, 2015 8:05 pm
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Process CLI config constrcut in Spreadsheet friendly format
Replies: 1
Views: 6774

Process CLI config constrcut in Spreadsheet friendly format

I am a perle regex type so wish to do my work in that. My problem is described below. So comments wrt approach greatly appreciated. I have several ideas but probably for clarity I will hold back here for now. My main problem as I see it is to accommodate the variable number of match statements under...
by slouw
Fri Dec 20, 2013 1:45 pm
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Perl RegEx Back References
Replies: 3
Views: 8557

Re: Perl RegEx Back References

Fantastic! Thank you. Works a treat. Should I have seen this in the notes/help somewhere? Thanks again
by slouw
Wed Dec 18, 2013 5:47 pm
Forum: TextPipe Tips and Tricks, Questions and Support
Topic: Perl RegEx Back References
Replies: 3
Views: 8557

Perl RegEx Back References

Please help with a Find and Replace using Perl Regex and back references. I get the unexpected output as shown in the 2nd screenshot. I am expecting/wating to get rid of everything after the first 3 CSV entries http://img199.imageshack.us/img199/9021/39ut.jpg http://img585.imageshack.us/img585/5274/...