Python Forum
Regex find string then return 10 character after it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex find string then return 10 character after it
#1
Hi,
I’ve been looking at Regex and regex cheat sheets and can find how to search for a string and then group them but it would be useful for me to be able to set a number of variables.

For example

varX = “x: “
varY = “y: “
varZ = “z: “

And then to specify for regex Python that I want to return the next 10 following characters.

Can someone point me to the terms to search for syntax in manuals to read

Thanks for your help
Reply


Messages In This Thread
Regex find string then return 10 character after it - by pyStund - Aug-02-2022, 04:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Efficient method to find phrase in string Tuxedo 6 3,096 Feb-25-2021, 07:23 PM
Last Post: Tuxedo
  A function to return only certain columns with certain string illmattic 2 2,249 Jul-24-2020, 12:57 PM
Last Post: illmattic
  Match string return different cell string Kristenl2784 0 1,454 Jul-20-2020, 07:54 PM
Last Post: Kristenl2784
  How to return values from For Loop via return in a function AykutRobotics 14 8,487 Jan-08-2019, 04:12 AM
Last Post: stullis

Forum Jump:

User Panel Messages

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