Search found 10 matches

by BenjaminB
Mon Jul 30, 2007 12:53 pm
Forum: General
Topic: Find values not matching a pattern
Replies: 5
Views: 653

What do you want to do with the lines not matching? If you just want to delete them, you could try this: Use your RegEx to "Mark All" Search->Invert all Bookmarks Edit->Delete->Bookmarked Lines I don't know of other ways to match lines that don't match. Sounds kind of contrary to the conce...
by BenjaminB
Fri Feb 23, 2007 10:45 am
Forum: HOW-TOs
Topic: Installing Textpad on Ubuntu
Replies: 4
Views: 5719

The idea was to explain it out so the novice could do it... What about people with an Ubuntu version different from dapper? I don't know about the exact consequences, but it might cause problems to use your sources.list in that case. If you're that advanced with Linux, ya shouldn't need a walk-thro...
by BenjaminB
Fri Feb 16, 2007 8:30 am
Forum: HOW-TOs
Topic: Installing Textpad on Ubuntu
Replies: 4
Views: 5719

Twigg wrote:

Code: Select all

gksudo gedit /etc/apt/sources.list
Replace the entire thing with this, then save and close gedit.
Wouldn't it be better to just change/add the additional lines? Some users may have altered their sources.list before. (Me, for example)
by BenjaminB
Wed Jan 31, 2007 11:35 am
Forum: General
Topic: Simple Regex is beating me.
Replies: 6
Views: 862

Try this: Search for ^([0-9]+,[^,]*), ? Replace with \1\n Click "Find Next" repeatedly until you are done (Unfortunately I did not find a better way to do this) EDIT: I just DID find a better way ;) Just search for ([0-9]+,[^,]*), ? (there is a whitespace before the "?", but be s...
by BenjaminB
Tue Jan 23, 2007 12:43 pm
Forum: General
Topic: Delete alternate rows
Replies: 6
Views: 413

We need more information on the format of your file. And I don't quite understand what you are trying to do, anyway.
by BenjaminB
Fri Jan 05, 2007 12:36 pm
Forum: General
Topic: Syntax definition file for .htaccess?
Replies: 8
Views: 644

I have .htaccess files that I have FTPed from websites, but I can't rename a file to .htaccess in Windoze - it simply won't allow me. It should work if you use the commandline. (Start->run->"cmd") Just type "ren [filename].[extension] .htaccess". Notepad can save files as .htacc...
by BenjaminB
Wed Jan 03, 2007 8:39 am
Forum: Tips
Topic: Macro for html, xml, etc. any file with <markup></m
Replies: 4
Views: 4443

Re: Slight change to account for nested elements

rsperberg wrote:So I've modified BenjaminB's improved version to anticipate there being text -- and specifically a set of paired angle brackets -- following the characters being entered in the macro. Otherwise the [Ctrl]+[Shift]+[M] won't always be selecting what was intended.
I didn't think of that, thank you :)
by BenjaminB
Tue Jan 02, 2007 2:54 pm
Forum: General
Topic: Regex to match compilation error displayed in several lines
Replies: 1
Views: 195

Just an idea: Maybe it is possible to write a Macro using the Goto Function? ([Ctrl]+[G])?
by BenjaminB
Tue Jan 02, 2007 1:53 pm
Forum: Tips
Topic: Macro for html, xml, etc. any file with <markup></m
Replies: 4
Views: 4443

It's pretty useful, but I think I may have an improvement for that, because it doesn't work so well if you have tags with attributes. (<a href="URI"> or <div id="header">, for example) I altered it to make it work in all cases: Type <a href="URI" Start recording Type: >...
by BenjaminB
Tue Sep 12, 2006 3:28 pm
Forum: Java
Topic: class or interface error
Replies: 2
Views: 672

Re: class or interface error

(...) layout.getDescent(); //getWidth() - xMessageWidth float xLeft = 0.5F * (getWidth() - xMessageWidth); float yTop = 0.5F * (getHeight() - yMessageHeight); float yBase = yTop + layout.getAscent(); g2.drawString(message, xLeft, yBase); } } There are too many brackets. The last "}" close...