-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
71 lines (31 loc) · 1.31 KB
/
test.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# coding=utf-8
import re, pprint, pickle
theString = """
Oregon Revised Statutes (ORS)
2013 Edition
The Oregon Revised Statutes are codified laws of the State of Oregon. The ORS is published every two years. Each edition of the ORS incorporates all laws, and changes to laws, enacted by the Legislative Assembly through the odd-numbered year regular session referenced in the volume titles for that edition. Purchase the Oregon Revised Statutes.
Oregon Rules of Civil Procedure (2013)
SCOPE; CONSTRUCTION; APPLICATION; RULE; CITATION
1 A Scope
1 B Construction
1 C Application
1 D “Rule” defined and local rules
1 E Use of declaration under penalty of perjury in lieu of affidavit; “declaration” defined
1 F Electronic filing
1 G Citation
FORM OF ACTION
2 One form of action
COMMENCEMENT
3 Commencement of action
JURISDICTION
(Personal)
4 Personal jurisdiction
4 A Local presence or status
4 B Special jurisdiction statutes
"""
theHeader = "SCOPE; CONSTRUCTION; APPLICATION; RULE; CITATION"
#print theHeader
# findHeader = theString.find(theHeader)
# theString = theString[0:findHeader] + '<h2>' + theString[findHeader:findHeader+len(theHeader)] + '</h2>' + theString[findHeader + len(theHeader):]
theString = theString.replace(theHeader, 'NOOOOOOOOOOOOOOOOOOO')
print theString