diff --git a/.travis.yml b/.travis.yml
index 9c685d1bd798f86fe125ba7b5b607ddfe9d684d3..1217059f4df249fb66d4c4f911ac33d308659733 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,6 @@
 language: python
 python:
-  - "3.2"
-  - "3.3"
   - "3.4"
   - "3.5"
+  - "3.6"
 script: py.test
diff --git a/README.md b/README.md
index ae1296db2617788848dfe15510450113c1802500..c174a475f054d207c9bcf3c6d33396968dde95b3 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,7 @@
 
 # pdb2lmp
 Convert PDB files to LAMMPS data and force field files.
+Requires Python 3.4 or greater.
 
 ## Aim
 This program uses a library of pre-defined molecule, atom, and bond types to convert PDB or GRO files into LAMMPS input DATA (topology) and FF (forcefield) files.  It was inspired by the GROMACS tool PDB2GMX as an attempt to make it easier to setup simulations using the [ELBA forcefield](https://github.com/orsim/elba-lammps).  It should however be more broadly applicable to molecular simulation in LAMMPS in general.
diff --git a/pdb2lmp.py b/pdb2lmp.py
index 179fd5faf6f8f1278b97abd7b68f8e0475d32304..76a748cd1e05a3838bd7f15c1c1bc0d051092db2 100755
--- a/pdb2lmp.py
+++ b/pdb2lmp.py
@@ -80,8 +80,7 @@ class PDB2LMP:
         def collect_type(values, counter, db_vals, typelist, stylelist, nextmol_name):
             for val in values:
                 try:
-                    regex = re.compile(val.ifnext)
-                    if regex.fullmatch(nextmol_name) is None:
+                    if re.fullmatch(val.ifnext, nextmol_name) is None:
                         continue
                 except AttributeError:
                     pass
@@ -198,8 +197,7 @@ class PDB2LMP:
                     atom_list = list(mol_db.atoms.keys())
                     for bond in getattr(mol_db, header.lower()):
                         try:
-                            regex = re.compile(bond.ifnext)
-                            if regex.fullmatch(nextmol_name) is None:
+                            if re.fullmatch(bond.ifnext, nextmol_name) is None:
                                 continue
                         except AttributeError:
                             pass