Search found 327 matches

by SteveH
Mon Feb 14, 2011 12:42 pm
Forum: General
Topic: Deleting a line having // at beginging
Replies: 4
Views: 356

If you only want to clear lines beginning with // use the following. ^//.* with regular expression enabled. The '^' symbol matches the start of a line. Your original search string answers the question on how to "delete all lines which has //". The one above is for "Deleting a line hav...
by SteveH
Wed Nov 24, 2010 10:14 pm
Forum: Enhancement Suggestions
Topic: When will Unicode problem be fixed? Is it fixed after 5.0?
Replies: 12
Views: 1272

Helios have always made it very clear they will not speculate on future features. As I’ve said before that’s their right but cuts both ways. This can work to their advantage if they avoid advertising features or a roadmap they are not subsequently able to achieve. It works to their disadvantage ...
by SteveH
Fri Nov 12, 2010 9:08 am
Forum: General
Topic: open MS word docs from find in files
Replies: 1
Views: 1788

I think it's unlikely that TextPad is the best tool for this. TextPad is a plain text editor for editing [url=http://en.wikipedia.org/wiki/Text_editor]plain text files[/]. Microsoft word files are binary files and there is no simple 1:1 correspondance between the text searched for and the internal s...
by SteveH
Thu Aug 19, 2010 11:40 am
Forum: WildEdit
Topic: New and Frustrated...Need help with RegEx code
Replies: 3
Views: 4316

You need to perform the following search and replace: Find what: ^.*> Replace with: Nothing - leave it blank With regular expression enabled and POSIX regular expression syntax enabled in the general preferences. This searches for repetition '*' of any character '.' following a new line '^' up to a ...
by SteveH
Wed Aug 18, 2010 8:44 pm
Forum: General
Topic: Glyphs, symbols, special characters
Replies: 1
Views: 143

I could be wrong but I suspect Word is turning your 'straight quotes' into ‘smart quotes’. If you can live with it and turn off Word's autocorrect options for this you will be able to copy and paste them. 1. On the Tools menu, click AutoCorrect Options, then click the AutoFormat As You Type tab....
by SteveH
Fri Aug 13, 2010 2:32 pm
Forum: Enhancement Suggestions
Topic: Poll: What font do you use in TextPad
Replies: 3
Views: 590

Poll: What font do you use in TextPad

Forgive posting this in enhancements. It’s not an enhancement request, I’m just curious to see what fonts people use in TextPad. I tend to obsess on this topic and haven’t yet found my perfect fixed width font. At the moment I’m favouring Droid Sans Mono but have run through many from Andale...
by SteveH
Tue Jul 27, 2010 3:06 pm
Forum: General
Topic: Capture specify data from text
Replies: 6
Views: 335

It would help if you can post an example showing the BEFORE and AFTER text you would want.
by SteveH
Tue Jul 27, 2010 3:03 pm
Forum: General
Topic: Multiple-deletion of specific content in files in a folder
Replies: 5
Views: 1279

It sounds like WildEdit might be a better solution to this problem.
by SteveH
Fri Jul 02, 2010 10:01 am
Forum: General
Topic: How to remove lines that start with a string?
Replies: 5
Views: 414

You need to perform the following search and replace: Find what: ^STRING1 With regular expression enabled and POSIX regular expression syntax enabled in the general preferences. I'm assuming from your example that STRING1 does not vary and that it is always at the start of a line.The character '^' i...
by SteveH
Tue Mar 30, 2010 5:20 pm
Forum: General
Topic: Which fonts are non-proportional in TextPad ???
Replies: 3
Views: 343

Microsoft's Consolas is quite a nice fixed width font. Another good choice is the DejaVu family of fonts that have already been recommended, although the Unicode capability of these font may not get a heavy workout in TextPad. Have a look at Inconsolata too in case that suits you. PS Congratulations...
by SteveH
Fri Mar 19, 2010 12:45 pm
Forum: General
Topic: Matching character NOT followed by another
Replies: 2
Views: 237

That works beautifully in TextPad which is a great starting point. In the application I am using it starts on a new line and then will match over multiple lines until an @ character which may be some lines down. In my example it would match from '- Some text' through to the @. I think I always need ...
by SteveH
Fri Mar 19, 2010 12:10 pm
Forum: General
Topic: Matching character NOT followed by another
Replies: 2
Views: 237

Matching character NOT followed by another

This isn't a query related specifically to the regular expression engine in TextPad - I suspect it can't be done in TextPad. Is there anyway to stop a regular expression match ending either at a specific character or at the end of a line? - Some Text (19/09/10) - More Text @home @today For example i...
by SteveH
Tue Mar 09, 2010 8:18 am
Forum: General
Topic: Matching line numbers
Replies: 4
Views: 402

Thanks Bob. That would also match the first 7 characters of comments, which can also occupy the same space as statement numbers. I didn't say that though, so your suggestion would work on the example I provided.
by SteveH
Mon Mar 08, 2010 9:58 pm
Forum: General
Topic: Matching line numbers
Replies: 4
Views: 402

It assumes you are using Posix regular expression syntax
Thanks Ben, that works great as always.

In this case it's something closer to PCRE.
by SteveH
Mon Mar 08, 2010 9:29 pm
Forum: General
Topic: Matching line numbers
Replies: 4
Views: 402

Matching line numbers

Is there a nice, elegant regular expression that matches all the following line numbers. They all start as the first character on a new line and the one without the 'E have a space in front of them.

Code: Select all

 000000
     25
     30
    100
 500000
E700000
 999999