Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99219

using re.split function

X-Received by 10.50.1.18 with SMTP id 18mr7205955igi.1.1448131761924; Sat, 21 Nov 2015 10:49:21 -0800 (PST)
X-Received by 10.50.126.99 with SMTP id mx3mr192554igb.1.1448131761864; Sat, 21 Nov 2015 10:49:21 -0800 (PST)
Path csiph.com!xmission!news.glorb.com!mv3no170805igc.0!news-out.google.com!l1ni4730igd.0!nntp.google.com!mv3no170797igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Sat, 21 Nov 2015 10:49:21 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=192.114.91.213; posting-account=IrV2ngoAAADv6tpuZNXosjDlOsvXmeDe
NNTP-Posting-Host 192.114.91.213
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <f810df9d-5691-467c-b212-7799dfdbb38d@googlegroups.com> (permalink)
Subject using re.split function
From david burstein <david007killer@gmail.com>
Injection-Date Sat, 21 Nov 2015 18:49:21 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:99219

Show key headers only | View raw


im pretty new in python and i didnt get how to use the re.split function.
for example if i have a string and i want to split it by two conditions:
first one splitting when " [ " appears second one when "]" appears

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

using re.split function david burstein <david007killer@gmail.com> - 2015-11-21 10:49 -0800
  Re: using re.split function MRAB <python@mrabarnett.plus.com> - 2015-11-21 19:20 +0000

csiph-web