Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expressions
#1
i have a list of files that i want to select from for those with "in" in the name, where the "in" is not a part of "bin". that is, "bin" is to not match, but "in" with anything else in front, or at the beginning of the whole string, is considered to match. if both are present like "fooinbin" or "foobininbar" then the non-"bin" form of "in" being there, makes it match. what kind of regular expression can do this? i'm a dummy at making REs but i am wanting to use the egrep command, so an RE seems to be the way to go.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

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