Search found 10 matches

by bensonuser
Sun Feb 28, 2010 3:44 pm
Forum: General
Topic: find blanks in the 105th postion and replace with a zero
Replies: 1
Views: 204

find blanks in the 105th postion and replace with a zero

I am trying to replace all blanks in the 105th position with a zero but i am not doing something right. Here is an example of a line i am working on. the 105th position is the blank in front of the 4. Right now the 4 gets replaced with a 0. TROIS-RIVIERES SUBARU 4 02 D1 this is my find expression: ^...
by bensonuser
Wed Jan 13, 2010 1:36 pm
Forum: General
Topic: insert and replace test
Replies: 4
Views: 456

thanks for the solution

thanks very much.

works like a charm.

you guys are great!
by bensonuser
Wed Jan 13, 2010 2:20 am
Forum: General
Topic: insert and replace test
Replies: 4
Views: 456

1,,19166100
2,,19179581
3,,fw127

the , represents a space.

the end result would look like this:

00119166100
00219179581
003fw127

hope this makes everything a bit more clear. sorry for the confusion.

thanks for the quick response
by bensonuser
Wed Jan 13, 2010 1:47 am
Forum: General
Topic: insert and replace test
Replies: 4
Views: 456

insert and replace test

i have a file which looks like this: 1 19166100 2 19179581 3 FW127 i need to replace <character><space><space> with <zero><zero><character> where the character can be any number between one and 9. i know how to replace the blanks with zeros but i can't figure out how to keep the character without re...
by bensonuser
Fri Mar 27, 2009 9:04 pm
Forum: General
Topic: find rows beginning with and containing at the same time
Replies: 8
Views: 411

because i replaced the - with a # only on the lines that began with the codes i needed, i was then able to just use find and delete all once it had done the change. i could not get the \1 not to leave a space. i am new to textpad so maybe i will figure it out eventually but i was running out of time...
by bensonuser
Fri Mar 27, 2009 2:22 pm
Forum: General
Topic: find rows beginning with and containing at the same time
Replies: 8
Views: 411

solution to find and replace question

thanks for the quick and helpful responses. this was my final solution. i used find # (to make sure the symbol did not already exist in my data) i used your find (^158.*)- i changed the replace to: \1# (regular exp on and using replace all) i repeated the replace all until the program responded with...
by bensonuser
Fri Mar 27, 2009 12:18 pm
Forum: General
Topic: find rows beginning with and containing at the same time
Replies: 8
Views: 411

thanks very much for your reply.
the replace command of \1 replaces the - with a blank so my end result looks like:

158CB 125U

i need it to look like this:

158CB125U

any suggestions would be appreciated.
by bensonuser
Thu Mar 26, 2009 8:49 pm
Forum: General
Topic: find rows beginning with and containing at the same time
Replies: 8
Views: 411

find rows beginning with and containing at the same time

I am trying to find rows beginning with 158 and containing a - The dash can be in different positions. Some rows may even contain more than one. The file contains rows that begin with codes other than 158 but do contain a dash. They should be ignored. Once I find the row beginning with 158 and conta...
by bensonuser
Wed Mar 12, 2008 8:12 pm
Forum: General
Topic: insert text at beginning of a line
Replies: 2
Views: 340

Thanks

that's does the trick :D
by bensonuser
Wed Mar 12, 2008 2:48 pm
Forum: General
Topic: insert text at beginning of a line
Replies: 2
Views: 340

insert text at beginning of a line

i am trying to insert a "#" in front of any line that has "299" in the 63rd space of the row i can find the lines using ^.{63}299 i can't grasp how to then tell textpad to insert a # at the beginning of the line without deleting any of the existing information. i have looked thro...