for (var i = 0; i < upto; i++)
{
x = ScriptUtils.Pos(needle, Document.Lines );
if (x == 0)
{
// no needle on this line
d[j] = Document.Lines ;
j++;
}
}
This is an excerpt from pjj's post. What I'm now trying to do is to detect a string in d[j] that terminates in the new line character ...
Search found 5 matches
- 17 Oct 2014 02:20
- Forum: Scripts
- Topic: Need a few examples, please
- Replies: 8
- Views: 45073
- 10 Dec 2013 19:33
- Forum: Scripts
- Topic: Need a few examples, please
- Replies: 8
- Views: 45073
Re: Need a few examples, please
The posts helped me greatly. Thanks again. However, I've run into one speed bump, and I need help. In a var, I have:
var temp = "12/10/2013 21:39 HOURS (ET) USA";
But when I try to get a sub string, I get an error. I've tried may, may variations to no avail. Can someone help? Say for instance I ...
var temp = "12/10/2013 21:39 HOURS (ET) USA";
But when I try to get a sub string, I get an error. I've tried may, may variations to no avail. Can someone help? Say for instance I ...
- 10 Dec 2013 16:27
- Forum: Scripts
- Topic: Need a few examples, please
- Replies: 8
- Views: 45073
Re: Need a few examples, please
Thanks loads!
I haven't been on the board for awhile. The example have given me a jump start on what I needed.
I haven't been on the board for awhile. The example have given me a jump start on what I needed.
- 07 Nov 2013 01:15
- Forum: Scripts
- Topic: Need a few examples, please
- Replies: 8
- Views: 45073
Need a few examples, please
I need a few examples. Specifically:
1. Loop through a file from beginning to end, storing the current line in a variable.
2. Find a line with a specific text in it, select the line, and delete the line (including the newline character).
Thanks in advance.
1. Loop through a file from beginning to end, storing the current line in a variable.
2. Find a line with a specific text in it, select the line, and delete the line (including the newline character).
Thanks in advance.
- 02 Jun 2013 16:49
- Forum: Scripts
- Topic: REGEX "Problem"
- Replies: 5
- Views: 39082
REGEX "Problem"
I have a script in another editor that I want to get away from, if I can and use RJ Text Ed. But the "deal breaker" is if I can get it to do some conversion.
Say I have this (US dates MM/DD/YYYY):
USER1234 (06/21/2012 02:34:59 PM EST)
XYZ1 (06/21/2012 03:38:14 PM EST)
ABCD (06/22/2012 06:45:05 AM ...
Say I have this (US dates MM/DD/YYYY):
USER1234 (06/21/2012 02:34:59 PM EST)
XYZ1 (06/21/2012 03:38:14 PM EST)
ABCD (06/22/2012 06:45:05 AM ...