DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python read string between two substrings
import
re s
=
's1Texts2'
result
=
re
.
search
(
's1(.*)s2'
,
s
)
print
(
result
.
group
(
1
)
)
PREVIOUS
NEXT
Tagged:
#python
#read
#string
#substrings
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit