Thanks Simon,
this a great solution.
gerd
Search found 39 matches
- Fri Mar 29, 2013 3:52 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Insert rel=nofollow in link if not present
- Replies: 2
- Views: 6712
- Wed Mar 27, 2013 1:31 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Insert rel=nofollow in link if not present
- Replies: 2
- Views: 6712
Insert rel=nofollow in link if not present
Hi, I am struggling with the inserting of rel="nofollow" in all links within a certain text block if the link does not has this string. Example of the textblock: <!--menu2--> ... <!--menu3--> Insert in all links within the textblock <!--menu2-->(.*)<!--menu3--> after the two characters <a ...
- Wed Mar 13, 2013 8:53 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Delete words with less than X characters in a HTML Tag
- Replies: 5
- Views: 8573
Re: Delete words with less than X characters in a HTML Tag
Thanks Simon,
that regex is very close and works. The only missing point of the above example is now: How to include
Words starting with a capital letter consisting of a least X characters.
how to put e.g. {5,}? or something else in your above regex ?
Thanks
gerd
that regex is very close and works. The only missing point of the above example is now: How to include
Words starting with a capital letter consisting of a least X characters.
how to put e.g. {5,}? or something else in your above regex ?
Thanks
gerd
- Tue Mar 12, 2013 7:30 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Delete words with less than X characters in a HTML Tag
- Replies: 5
- Views: 8573
Re: Delete words with less than X characters in a HTML Tag
Simon, <h1>^[A-Z][^<]{6,}</h1> this does not work. Example: <h1>here some words BBQ Änderung Östereich</h1> The requested result should be <h1>Änderung Österreich</h1> In other words: Extract whole words only starting with a capital letter consisting of a least X characters. I assume that the replac...
- Fri Mar 08, 2013 12:40 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Delete words with less than X characters in a HTML Tag
- Replies: 5
- Views: 8573
Delete words with less than X characters in a HTML Tag
I need to delete all strings and words within a HTML Tag like H1 which are less than 6 Characters and do not start with a Capital Letter Example: <h1>I need to delete all strings and words within a HTML Tag like H1 which are less than 6 Characters and do not start with a Capital Letter</h1> Requeste...
- Tue May 29, 2012 4:01 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: replace blocks of text
- Replies: 12
- Views: 15173
Re: replace blocks of text
Excuse me for bringung up the point again. But I have a strong demand for a working VB script to replace a string on a line-by-line basis as described below. Example: filelist.txt with 20 lines (filenames) and a file replaces.txt with 20 lines of different replacements. If anyone could help to make ...
- Tue May 22, 2012 4:58 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: replace blocks of text
- Replies: 12
- Views: 15173
Re: replace blocks of text
I get now a different error mesage. [13] Runtime error in Microsoft VBScript: Typ 'UBound' at line:32,char:4near; Line 32 reads as follows: ReDim Preserve fileContents(UBound(fileContents) + 1) I have TP Pro 9.1. Could you please check again wotj TP Pro 9.1. Such a filter would be pretty useful sinc...
- Mon May 21, 2012 9:14 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: replace blocks of text
- Replies: 12
- Views: 15173
Re: replace blocks of text
I get the following error translated into Englilsh [424] runtime error in Microsoft VBScript:Object 'objTextFile' at line 30, char:2near: object required:'objTextFile' Since I did not change anything in the VB Script it seems to me that the script itself requires an adjustment. The production of the...
- Thu May 17, 2012 12:26 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: replace blocks of text
- Replies: 12
- Views: 15173
Re: replace blocks of text
Hi Simon, could you please give an example of the contents of the replacement file "replaces.txt". Assuming as in the example the contents of the title tag should be changed. This is the file replaces.txt "C:\Program Files\TextPipe\files\78751.htm",this is new title 1 "C:\Pr...
- Sat Jan 07, 2012 10:43 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Find words starting with a capital letter
- Replies: 5
- Views: 8139
Re: Find words starting with a capital letter
Thanks a lot, that's the result what I was looking for. I guess I have somehow tried the line [A-Z][a-z]{5,} but surely without the missing question mark. I use the ? so far only as "at most one match". I guess I should take the time and go through the pages 77 - 106 of your manual careful...
- Thu Jan 05, 2012 5:08 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Find words starting with a capital letter
- Replies: 5
- Views: 8139
Find words starting with a capital letter
Hi, I am struggling with a filter that should perform the following: Find all words in a text which start with a capital letter and consist of at least 6 characters and extract them to a csv file. Example Text: You can also perform Partial Trial Runs by right-clicking on filters in the Filter list. ...
- Sun Sep 19, 2010 10:54 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Extract several parts of a text
- Replies: 0
- Views: 7729
Extract several parts of a text
This is an enhancement of http://www.datamystic.com/forums/viewtopic.php?f=17&t=1443 related to "extract several parts of a line". The task is to extract from html files the @Inputfilename <title>(.*)</title> All <b>(.*)</b><br> within the html file and combine everything in a separate...
- Fri Sep 17, 2010 6:56 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Extract several parts of a line
- Replies: 3
- Views: 6426
Re: Extract several parts of a line
Hi Simon, href="(.*)" title="(.*)" or href="(.*)" title="(.*)"> Both show not the requested results. Maybe my version Textpipe Lite 8.4.8 does not support this. If i use your code href=".*" title=".*"> I receive the error message: $2 is not...
- Thu Sep 16, 2010 8:52 pm
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Extract several parts of a line
- Replies: 3
- Views: 6426
Extract several parts of a line
Hi, I have tried a couple of things with Perl pattern to extract some parts from the following lines of sample text. In Detail: I would like to extract 3 parts of the line and combine the extraced $ parts in a new line. The parts are here: - text between href="..." - text between title=&qu...
- Tue Feb 02, 2010 1:02 am
- Forum: TextPipe Tips and Tricks, Questions and Support
- Topic: Replace specific links with the underlying linktext
- Replies: 3
- Views: 5925
Re: Replace specific links with the underlying linktext
Simon, you are great. It works exactly as requested. I understand about 90-95% of your above Perl Pattern Code. I also tried to find the perl pattern code with EasyPattern Helper but it was just too "big" for me. This is one more example which helps a lot to understand the use of Textpipe ...