Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regex help for newbie
#3
Hi scidam,
Thanks for the quick response. As to why I'm using python 2.x... Mostly my impetus is that I use Ansible a lot so I wanted to be able to take advantage of some of the advanced features like writing my own module, Jinja2, etc. And as of now, python 3 is not fully supported for most of the features.

I did try your suggestions and each combination but am getting the same results as before my post. Also, I used
re.compile("car\S+")
because my hosts file was just an example and the characters following the match may be alpha, digit, etc.
Reply


Messages In This Thread
Regex help for newbie - by mcmpdx - Jul-01-2019, 12:15 AM
RE: Regex help for newbie - by scidam - Jul-01-2019, 01:07 AM
RE: Regex help for newbie - by mcmpdx - Jul-01-2019, 02:35 AM
RE: Regex help for newbie - by perfringo - Jul-01-2019, 06:54 AM
RE: Regex help for newbie - by mcmpdx - Jul-01-2019, 04:50 PM
RE: Regex help for newbie - by ichabod801 - Jul-01-2019, 06:17 PM
RE: Regex help for newbie - by mcmpdx - Jul-01-2019, 10:21 PM

Forum Jump:

User Panel Messages

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