I've been working on a problem for a while and came up with a solution that I would like to share. I categorize a webpage with comments to seperate topics and...
18981
Flo
jonas_ramus
Mar 2, 2009 2:05 pm
... Paul, I understand that the lines... <!-- Mexico: --> <li><b><i>Melbourne... are replaced with... <!-- Mexico: --> <li>Mexico: <b><i>Melbourne... Isn't...
18982
paulmaser
Mar 2, 2009 6:05 pm
Flo; You are certainly a master at this. I will have to spend some time trying to figure out what you are doing. Thanks, as always. Paul...
18983
paulmaser
Mar 3, 2009 2:48 am
... Flo; Thanks again, I've had some time to play with, but if there are multiple lines entered after the comment it ignores them. This was always my problem....
18984
Flo
jonas_ramus
Mar 3, 2009 2:58 pm
... Paul, So far, I understood that there are "comments" like... <!-- Mexico: --> and "added lines" like... <li><b><i>Melbourne Age</i></b> asdf mjmdof aselkmd...
18985
paulmaser
Mar 3, 2009 4:02 pm
Flo; Here is what today's post look like at the moment: The reader wraps the lines, which makes it difficult to read. Thanks; Paul <!-- Caribbean: --> <!--...
18986
Flo
jonas_ramus
Mar 4, 2009 1:07 am
... Paul, That's a lot of lines -- could we reduce it as follows? <!-- Asia-Pacific: --> <!-- Asia: --> <!-- East Asia: --> <li><b><i>AP Google</i></b> - <a...
18987
paulmaser
Mar 4, 2009 4:19 pm
Flo; Once again, your regex is beyond my ability to comprehend and I will have to dive into the manual to understand what you are doing. It looks like it gives...
18988
Don - HtmlFixIt.com
dpasseng
Mar 4, 2009 9:52 pm
Um yes Flo, can you break that down for the slow kids in the back here?...
18989
Flo
jonas_ramus
Mar 5, 2009 3:21 pm
... Here we go... (?s) = "dot matches all" modifier (also NL to match multiple lines) ^<!-- = matches at start of a comment line [^-]+ = character class: any...
18990
paulmaser
Mar 5, 2009 10:41 pm
Flo; I am having a hard time understanding how \Z works. Could you expand on your explanation? Thanks; Paul...
18991
Flo
jonas_ramus
Mar 6, 2009 12:36 am
... Paul, There's an upper \Z and a lower \z. Imagine a document that ends with the following two lines... This is next to last line This is the last line With...
18992
paulmaser
Mar 6, 2009 8:31 pm
Flo; Thanks, that helps. By the way, that is a nice piece of work you coded. You showed me some stuff I would have never figured out. Paul...
18993
Michael Frascinella
m_frascinella
Mar 7, 2009 12:41 am
Flo, I tried a test of ^!Find "line92;z" RS and ^!Find "line92;Z" RS using your sample text. Both assertions found only the last instance of "line" on the last...
18994
Flo
jonas_ramus
Mar 7, 2009 2:38 pm
Michael, ... Well, that's the way it works. The first instance of "line" is not at "the end of subject" (Help on RegEx). So it isn't matched. As I said, the...
18995
John Shotsky
shotsky1
Mar 8, 2009 6:14 pm
Hi all, I have a coding problem that I can't quite figure out, but I suspect it is easily done. In a text document of hundreds to thousands of lines, there are...
18996
Sheri
silvermoonwo...
Mar 9, 2009 1:11 pm
... You could do something like this: ^!Jump Doc_start ... ^!Find "^\w+: .+,.*" RS ^!Iferror Out ^!Replace "((?<=:)|,) " >> "\r92;n#" RAHS ^!Goto Loop ... ^!Jump...
18997
John Shotsky
shotsky1
Mar 9, 2009 1:30 pm
Thanks, Sheri! I actually did something similar, but felt it was inelegant so was looking for an improvement. I like some of the things you've done, which I...
18998
Don - HtmlFixIt.com
dpasseng
Mar 10, 2009 4:23 am
I have a number of individual files with bad email addresses in them. Each file has one bad email address. I can find them with this regex if I go file by...
18999
Alan C
acummingsus
Mar 10, 2009 10:52 am
Hi Don, Wouldn't it go similar to the next? Some of my syntax is slightly off (too much Perl). So you need to verify/correct the syntax. ^!Find...
19000
Sheri
silvermoonwo...
Mar 10, 2009 3:34 pm
... I posted pcregrep here: <http://tech.groups.yahoo.com/group/ntb-clips/files/pcregrep78.zip> You can unzip it into a folder that is on your path and try...
19001
paulmaser
Mar 10, 2009 6:19 pm
I don't know if this might help, but I have a short clip for opening and retrieving data using regex from a group of about 5000 files. ... ^!ClearVariables ...
19002
Don - HtmlFixIt.com
dpasseng
Mar 10, 2009 6:26 pm
... I think that is what I am looking for. On the other hand I am trying to get Sheri's to work. Sheri, when you say unzip it in the path, what do you mean?...
19003
Sheri
silvermoonwo...
Mar 10, 2009 9:34 pm
... Unzip it into NoteTab's application folder. That will work since it will be used from inside NoteTab. "On the path" is a system term. There is an...
19004
Sheri
silvermoonwo...
Mar 10, 2009 11:05 pm
Are the bounced mail files "txt" files? If you just want it to search all files under the bounced email directory, it doesn't need an include. Here's a...
19005
Don - HtmlFixIt.com
dpasseng
Mar 10, 2009 11:54 pm
While they are .txt files in reality they have not extension -- in fact they are very long weird names. I renamed them all to shorter name.txt and managed to...
19006
Alec Burgess
alecb3ca
Mar 11, 2009 12:59 am
Sheri (silvermoonwoman@...) wrote (in part) (on 2009-03-10 at ... @Sheri - thanks for that, I was going to suggest using grep from cygwin or unxutils...
19007
Alan C
acummingsus
Mar 11, 2009 6:18 am
Hi Alec, Quite common is the Linux counterpart. But, typically, (probably not always) a user's "bin" folder gets tagged on to the end of the path. Whoever...
19008
vanwasdi
Mar 11, 2009 7:47 am
This working clip popups a wizard to navigate an outline. I have some questions to refine it. CLIP ... H="Navigate Outline" ;check if outline if not end ^!If...
19009
Sheri
silvermoonwo...
Mar 11, 2009 1:24 pm
... I think you discovered a bug. If you use a setting greater than 34, it creates a second vertical scrollbar. Solution, do not use a setting greater than 34....