jEdit Community - Resources for users of the jEdit Text Editor
Deleting tags
Submitted by rsmachado90 on Monday, 17 January, 2011 - 17:45
Please, I would like some help in the following: I want delet all: in the file. The id=* is different for each occurence. I'm trying the: "(TimeSpan)(.*\n)*.*(/TimeSpan)" but it's not working. How to fix it? Thanks in advance, Ricardo
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
?
by Robert Schwenn on Mon, 17/01/2011 - 21:36
I can't see what You're looking for.

One tip: try to search manually before coding the regular expression in a macro. Then You will see if the problem is the regular expession itself or it's coding inside a Java string.
 
deleting tags
by rsmachado90 on Tue, 18/01/2011 - 08:20
Ok,
I want delet all tags like:
TimeSpan id="layer ts1"
/TimeSpan
in file. In my case ther is more than 800 occurences of it. The id changes fir each one.
Thanks
Ricardo
 
interactive search
by Robert Schwenn on Tue, 18/01/2011 - 20:08
Did You try an interactive search? Works nearly perfect for me, accept that all the text from the first to the last tag is found completely as one occurrence. Try this one instead (of course the brackets have to be included):

"TimeSpan.*/TimeSpan\n"
 
deleting tags
by rsmachado90 on Wed, 19/01/2011 - 22:19
HI,
Thanks for your attention.
Maybe I'm not doing it right, please, could you take a look in a screen shot?
http://1.bp.blogspot.com/_evJEoSfUVyQ/TTdi4aaHDYI/AAAAAAAAAEs/eW_XY2aqO8w/s1600/regexp1.png

I would appreciate some tip.
Thanks in advance,
Ricardo
 
double quotes
by Robert Schwenn on Thu, 20/01/2011 - 18:27
You have to omit the double quotes.
User login
Browse archives
« November 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
 
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   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300