Python Forum
Regex on more than one line ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex on more than one line ?
#4
(Mar-11-2020, 11:51 PM)micseydel Wrote: Try implicit string concatenation:
var = re.match(
  r"my.."     # comment here
  r"........" # comment here
  r"........"
  r"...............................................................regex too long",
  string)
Thank.
Reply


Messages In This Thread
Regex on more than one line ? - by JohnnyCoffee - Mar-11-2020, 10:32 PM
RE: Regex on more than one line ? - by micseydel - Mar-11-2020, 11:51 PM
RE: Regex on more than one line ? - by snippsat - Mar-12-2020, 09:33 AM
RE: Regex on more than one line ? - by JohnnyCoffee - Mar-12-2020, 02:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  regex multi-line kucingkembar 6 1,584 Aug-27-2022, 10:27 PM
Last Post: kucingkembar
  [SOLVED] Why does regex fail cleaning line? Winfried 5 2,471 Aug-22-2021, 06:59 PM
Last Post: Winfried
  Regex won't replace character with line break Tomf96 2 2,561 Jan-12-2020, 12:14 PM
Last Post: Tomf96

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020