Skip to content

Instantly share code, notes, and snippets.

@reinhart1010
Last active May 1, 2020 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reinhart1010/43e9544172c501055f5a5067ed317843 to your computer and use it in GitHub Desktop.
Save reinhart1010/43e9544172c501055f5a5067ed317843 to your computer and use it in GitHub Desktop.
Regular Expression for fuzzy recognition of BINUS University's list of Majors

School of Computer Science

Computer Science, Global Class:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))[ (,-:]+(G(lobal){0,1}( )*C(lass){0,1})\){0,1}( )*$/gi

Computer Science, Master Track:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))[ (,-:]+(M(aster){0,1}( )*T(rack){0,1})\){0,1}( )*$/gi

Magister Computer Science:

/^( )*((Magister)|(S2))( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))( )*$/gi

Cyber Security: WARNING: "CS" may also refer to "Computer Science", so there are 2 variations of this code

  • With "CS" (Preferred)
/^( )*C(y(ber){0,1}){0,1}( )*S(ec(urity){0,1}){0,1}( )*$/gi
  • Without "CS" (Hint: use "CySec" as an alternative)
/^( )*Cy(ber){0,1}( )*Sec(urity){0,1}( )*$/gi

Game Application and Technology:

/^( )*G(ame){0,1}( )*A(pp(lication){0,1}(s){0,1}){0,1}( )*((and)|&|n){0,1}( )*T(ech(nology){0,1}){0,1}( )*$/gi

Mobile Application and Technology:

/^( )*M(obile){0,1}( )*A(pp(lication){0,1}(s){0,1}){0,1}( )*((and)|&){0,1}( )*T(ech(nology){0,1}){0,1}( )*$/gi

Computer Science: WARNING: "CS" may also refer to "Cyber Security", while "TI" may also refer to "Teknik Industri" (Industrial Engineering), so there are 4 variations of this code

  • Including "TI" and "CS":
/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))( )*$/gi
  • Excluding "TI" while Including "CS":
/^( )*((Teknik( )*Informatika)|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))( )*$/gi
  • Including "TI" while Excluding "CS" (Preferred for internal SOCS usage):
/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(Comp(uter){0,1}( )*Sci(ence){0,1}))( )*$/gi
  • Excluding "TI" and "CS" (Preferred for usages in other departments / multi-department):
/^( )*((Teknik( )*Informatika)|(IT)|(Comp(uter){0,1}( )*Sci(ence){0,1}))( )*$/gi

Computer Science and Mathematics:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))( )*((dan)|&|(and)|n){0,1}( )*Mat(h(ematics){0,1}|e(matik(a){0,1}){0,1}){0,1}( )*$/gi

Computer Science & Mathematics:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))( )*((dan)|&|(and)|n){0,1}( )*mat(h(ematics){0,1}|e(matik(a){0,1}){0,1}){0,1}( )*$/gi

Computer Science & Statistics:

/^( )*((T(eknik){0,1}( )*I(nformatika){0,1})|(IT)|(C(omp(uter){0,1}){0,1}( )*S(ci(ence){0,1}){0,1}))( )*((dan)|&|(and)|n){0,1}( )*Stat(s|is(ti(k(a){0,1}|c(s){0,1}){0,1}){0,1}){0,1}( )*$/gi

School of Design

DKV Animation:

/^( )*D(esain){0,1}( )*K(omunikasi){0,1}( )*V(isual){0,1}[ (,-:]+A(nim((asi)|(ation)){0,1}){0,1}\){0,1}( )*$/gi

DKV Creative Advertising:

/^( )*D(esain){0,1}( )*K(omunikasi){0,1}( )*V(isual){0,1}[ (,-:]+C(reative){0,1}( )*A(d(vert(ising){0,1}){0,1}){0,1}\){0,1}( )*$/gi

DKV New Media:

/^( )*D(esain){0,1}( )*K(omunikasi){0,1}( )*V(isual){0,1}[ (,-:]+N(ew){0,1}( )*M(edia){0,1}\){0,1}( )*$/gi

Faculty of Economics and Communication

Accounting:

/^( )*((Akuntan(si){0,1})|(Acc(ount(ing|ant)){0,1}))( )*$/gi

Marketing Communication:

/^( )*Mar(ket(ing){0,1}){0,1}( )*Com(m(unication(s){0,1}){0,1}){0,1}( )*$/gi

Mass Communication:

/^( )*Mas(s){0,1}( )*Com(m(unication(s){0,1}){0,1}){0,1}( )*$/gi

Faculty of Engineering

Food Technology:

/^( )*Food( )*Tech(nology){0,1}( )*$/gi

School of Information Systems

Business Information Technology:

/^( )*B((iz)|(usiness)){0,1}( )*I(nfo(rmation){0,1}){0,1}( )*T(ech(nology){0,1}){0,1}( )*$/gi

Information Systems:

/^( )*((I(nfo(rmation){0,1}){0,1}( )*S(ys(tem(s){0,1}){0,1}){0,1})|(S(is(tem){0,1}){0,1})( )*((I(nfo(rmasi){0,1}){0,1})|(fo)))( )*$/gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment