Edit File by line
•
/
home
/
barbar84
/
public_h...
/
wp-conte...
/
plugins
/
sujqvwi
/
AnonR
/
anonr.TX...
/
opt
/
alt
/
ruby18
/
lib64
/
ruby
/
1.8
•
File:
eregex.rb
# this is just a proof of concept toy.
[
0
]
Fix
|
Delete
[
1
]
Fix
|
Delete
class RegOr
[
2
]
Fix
|
Delete
def initialize(re1, re2)
[
3
]
Fix
|
Delete
@re1 = re1
[
4
]
Fix
|
Delete
@re2 = re2
[
5
]
Fix
|
Delete
end
[
6
]
Fix
|
Delete
[
7
]
Fix
|
Delete
def =~ (str)
[
8
]
Fix
|
Delete
@re1 =~ str or @re2 =~ str
[
9
]
Fix
|
Delete
end
[
10
]
Fix
|
Delete
end
[
11
]
Fix
|
Delete
[
12
]
Fix
|
Delete
class RegAnd
[
13
]
Fix
|
Delete
def initialize(re1, re2)
[
14
]
Fix
|
Delete
@re1 = re1
[
15
]
Fix
|
Delete
@re2 = re2
[
16
]
Fix
|
Delete
end
[
17
]
Fix
|
Delete
[
18
]
Fix
|
Delete
def =~ (str)
[
19
]
Fix
|
Delete
@re1 =~ str and @re2 =~ str
[
20
]
Fix
|
Delete
end
[
21
]
Fix
|
Delete
end
[
22
]
Fix
|
Delete
[
23
]
Fix
|
Delete
class Regexp
[
24
]
Fix
|
Delete
def |(other)
[
25
]
Fix
|
Delete
RegOr.new(self, other)
[
26
]
Fix
|
Delete
end
[
27
]
Fix
|
Delete
def &(other)
[
28
]
Fix
|
Delete
RegAnd.new(self, other)
[
29
]
Fix
|
Delete
end
[
30
]
Fix
|
Delete
end
[
31
]
Fix
|
Delete
[
32
]
Fix
|
Delete
if __FILE__ == $0
[
33
]
Fix
|
Delete
p "abc" =~ /b/|/c/
[
34
]
Fix
|
Delete
p "abc" =~ /b/&/c/
[
35
]
Fix
|
Delete
end
[
36
]
Fix
|
Delete
[
37
]
Fix
|
Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function
Edit text
Download
Information
Rename
Copy
Move
Delete
Chmod
List