jEdit Community - Resources for users of the jEdit Text Editor
partial string search
Submitted by jbrave on Thursday, 25 July, 2013 - 22:25
Does anyone know a good way to search for blocks of text where you know the starting part of the string, for instance, search for a multi-line text block that starts with the string:

"DATA:"

and ends with the string

"NULL"
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Regular Expression
by Robert Schwenn on Sun, 28/07/2013 - 11:59
For me, this Regular Expression works:

DATA(.*\n.*)+NULL

Robert
 
So I discovered if I drop the
by jbrave on Tue, 10/09/2013 - 23:28
So I discovered if I drop the DATA and remove the + sign between ) and NULL
that the search dialog becomes functional again.

DATA(.*\n.*)+NULL

So I can find things ending in NULL, but not the beginning part of the block.
 
That string doesn't work for
by jbrave on Mon, 29/07/2013 - 18:04
That string doesn't work for me at all. I open the Find dialog, and paste in the text, click find and nothing happens. I have regex selected, as well as Case Insensitive and Hypersearch and Current Buffer.

Since this is my first attempt to search using Regex, perhaps I'm doing something wrong?

Joel
 
?
by Robert Schwenn on Tue, 30/07/2013 - 19:31
Hmm, what do You mean by "nothing happens"? For me, always something does happen:
- the search dialog disappears (unless it's avoided via option)
- the hyper search dockable opens, whether or not an occurrence has been found.

I'm on WinXP, Java 1.7, jEdit 5.0.0
 
Hi Robert, I mean, absolut
by jbrave on Thu, 08/08/2013 - 19:44
Hi Robert,

I mean, absolutely nothing happens other than the Find button turns blue and stays blue as if it didn't completely "click". Normal finds work even with the Regular Expressions box checked, but if I plop in the above string, I don't even get a non-found error.

I'm on:

"JEdit 5.1pre1 server mode, using Sun Microsystems Inc Java 1.6.0_27"
User login
Browse archives
« March 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82339
Context Free Art (*.cfdg)   0.31   46046
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18108
ColdFusion scheme   1.0   18016
R Edit Mode - extensive version   0.1   17465
Advanced HTML edit mode   1.0   16198
Matlab Edit Mode   1.0   16060
jEdit XP icons   1.0   15221
XP icons for jEdit   1.1   14285