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...
... Paul, I understand that the lines... <!-- Mexico: --> <li><b><i>Melbourne... are replaced with... <!-- Mexico: --> <li>Mexico: <b><i>Melbourne... Isn't...
... 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....
... 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...
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: --> <!--...
... 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...
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...
... Here we go... (?s) = "dot matches all" modifier (also NL to match multiple lines) ^<!-- = matches at start of a comment line [^-]+ = character class: any...
... 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...
Flo, I tried a test of ^!Find "line\z" RS and ^!Find "line\Z" RS using your sample text. Both assertions found only the last instance of "line" on the last...
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...
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...
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...
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...
... 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...
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 ...
... 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?...
... 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...
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...
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...
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...
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...
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...
... 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....