Skip to content

Instantly share code, notes, and snippets.

View jagmit's full-sized avatar
👨‍💻

Jagmit Singh jagmit

👨‍💻
View GitHub Profile
#pip install biopython
#1) Reading an PDB file:
#create a PDBParser object:
import os
import math
import glob
from Bio.PDB import *
from Bio.PDB.PDBParser import PDBParser
from Bio.PDB import parse_pdb_header
@jagmit
jagmit / emailRegex.dart
Created February 17, 2020 16:11
Parse email addresses
RegExp exp = new RegExp(r"(([a-zA-Z\s,.]+)<)*?([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]*)>?");
String str = "Tilo Zimmermann <[email protected]>, Henning Pfennig <[email protected]>; Karsten, Chopin <[email protected]>; [email protected], [email protected], [email protected]<[email protected]>,";
Iterable<RegExpMatch> matches = exp.allMatches(str);