Regular Expressions 101

Save & Share

  • Regex Version: ver. 1
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
No Match

/
/
gm

Test String

Code Generator

Generated Code

import java.util.regex.Matcher; import java.util.regex.Pattern; public class Example { public static void main(String[] args) { final String regex = "application\\/.*?(?:msword|x-ms|vnd\\.ms-|officedocument)"; final String string = "application/vnd.hzn-3d-crossword .x3d 3D Crossword Plugin\n" + "video/3gpp .3gp 3GP\n" + "video/3gpp2 .3g2 3GP2\n" + "application/vnd.mseq .mseq 3GPP MSEQ File\n" + "application/vnd.3m.post-it-notes .pwn 3M Post It Notes\n" + "application/vnd.3gpp.pic-bw-large .plb 3rd Generation Partnership Project - Pic Large\n" + "application/vnd.3gpp.pic-bw-small .psb 3rd Generation Partnership Project - Pic Small\n" + "application/vnd.3gpp.pic-bw-var .pvb 3rd Generation Partnership Project - Pic Var\n" + "application/vnd.3gpp2.tcap .tcap 3rd Generation Partnership Project - Transaction Capabilities Application Part\n" + "application/x-7z-compressed .7z 7-Zip\n" + "application/x-abiword .abw AbiWord\n" + "application/x-ace-compressed .ace Ace Archive\n" + "application/vnd.americandynamics.acc .acc Active Content Compression\n" + "application/vnd.acucobol .acu ACU Cobol\n" + "application/vnd.acucorp .atc ACU Cobol\n" + "audio/adpcm .adp Adaptive differential pulse-code modulation\n" + "application/x-authorware-bin .aab Adobe (Macropedia) Authorware - Binary File\n" + "application/x-authorware-map .aam Adobe (Macropedia) Authorware - Map\n" + "application/x-authorware-seg .aas Adobe (Macropedia) Authorware - Segment File\n" + "application/vnd.adobe.air-application-installer-package+zip .air Adobe AIR Application\n" + "application/x-shockwave-flash .swf Adobe Flash\n" + "application/vnd.adobe.fxp .fxp Adobe Flex Project\n" + "application/pdf .pdf Adobe Portable Document Format\n" + "application/vnd.cups-ppd .ppd Adobe PostScript Printer Description File Format\n" + "application/x-director .dir Adobe Shockwave Player\n" + "application/vnd.adobe.xdp+xml .xdp Adobe XML Data Package\n" + "application/vnd.adobe.xfdf .xfdf Adobe XML Forms Data Format\n" + "audio/x-aac .aac Advanced Audio Coding (AAC)\n" + "application/vnd.ahead.space .ahead Ahead AIR Application\n" + "application/vnd.airzip.filesecure.azf .azf AirZip FileSECURE\n" + "application/vnd.airzip.filesecure.azs .azs AirZip FileSECURE\n" + "application/vnd.amazon.ebook .azw Amazon Kindle eBook format\n" + "application/vnd.amiga.ami .ami AmigaDE\n" + "application/andrew-inset N/A Andrew Toolkit\n" + "application/vnd.android.package-archive .apk Android Package Archive\n" + "application/vnd.anser-web-certificate-issue-initiation .cii ANSER-WEB Terminal Client - Certificate Issue\n" + "application/vnd.anser-web-funds-transfer-initiation .fti ANSER-WEB Terminal Client - Web Funds Transfer\n" + "application/vnd.antix.game-component .atx Antix Game Player\n" + "application/vnd.apple.installer+xml .mpkg Apple Installer Package\n" + "application/applixware .aw Applixware\n" + "application/vnd.hhe.lesson-player .les Archipelago Lesson Player\n" + "application/vnd.aristanetworks.swi .swi Arista Networks Software Image\n" + "text/x-asm .s Assembler Source File\n" + "application/atomcat+xml .atomcat Atom Publishing Protocol\n" + "application/atomsvc+xml .atomsvc Atom Publishing Protocol Service Document\n" + "application/atom+xml .atom, .xml Atom Syndication Format\n" + "application/pkix-attr-cert .ac Attribute Certificate\n" + "audio/x-aiff .aif Audio Interchange File Format\n" + "video/x-msvideo .avi Audio Video Interleave (AVI)\n" + "application/vnd.audiograph .aep Audiograph\n" + "image/vnd.dxf .dxf AutoCAD DXF\n" + "model/vnd.dwf .dwf Autodesk Design Web Format (DWF)\n" + "text/plain-bas .par BAS Partitur Format\n" + "application/x-bcpio .bcpio Binary CPIO Archive\n" + "application/octet-stream .bin Binary Data\n" + "image/bmp .bmp Bitmap Image File\n" + "application/x-bittorrent .torrent BitTorrent\n" + "application/vnd.rim.cod .cod Blackberry COD File\n" + "application/vnd.blueice.multipass .mpm Blueice Research Multipass\n" + "application/vnd.bmi .bmi BMI Drawing Data Interchange\n" + "application/x-sh .sh Bourne Shell Script\n" + "image/prs.btif .btif BTIF\n" + "application/vnd.businessobjects .rep BusinessObjects\n" + "application/x-bzip .bz Bzip Archive\n" + "application/x-bzip2 .bz2 Bzip2 Archive\n" + "application/x-csh .csh C Shell Script\n" + "text/x-c .c C Source File\n" + "application/vnd.chemdraw+xml .cdxml CambridgeSoft Chem Draw\n" + "text/css .css Cascading Style Sheets (CSS)\n" + "chemical/x-cdx .cdx ChemDraw eXchange file\n" + "chemical/x-cml .cml Chemical Markup Language\n" + "chemical/x-csml .csml Chemical Style Markup Language\n" + "application/vnd.contact.cmsg .cdbcmsg CIM Database\n" + "application/vnd.claymore .cla Claymore Data Files\n" + "application/vnd.clonk.c4group .c4g Clonk Game\n" + "image/vnd.dvb.subtitle .sub Close Captioning - Subtitle\n" + "application/cdmi-capability .cdmia Cloud Data Management Interface (CDMI) - Capability\n" + "application/cdmi-container .cdmic Cloud Data Management Interface (CDMI) - Contaimer\n" + "application/cdmi-domain .cdmid Cloud Data Management Interface (CDMI) - Domain\n" + "application/cdmi-object .cdmio Cloud Data Management Interface (CDMI) - Object\n" + "application/cdmi-queue .cdmiq Cloud Data Management Interface (CDMI) - Queue\n" + "application/vnd.cluetrust.cartomobile-config .c11amc ClueTrust CartoMobile - Config\n" + "application/vnd.cluetrust.cartomobile-config-pkg .c11amz ClueTrust CartoMobile - Config Package\n" + "image/x-cmu-raster .ras CMU Image\n" + "model/vnd.collada+xml .dae COLLADA\n" + "text/csv .csv Comma-Seperated Values\n" + "application/mac-compactpro .cpt Compact Pro\n" + "application/vnd.wap.wmlc .wmlc Compiled Wireless Markup Language (WMLC)\n" + "image/cgm .cgm Computer Graphics Metafile\n" + "x-conference/x-cooltalk .ice CoolTalk\n" + "image/x-cmx .cmx Corel Metafile Exchange (CMX)\n" + "application/vnd.xara .xar CorelXARA\n" + "application/vnd.cosmocaller .cmc CosmoCaller\n" + "application/x-cpio .cpio CPIO Archive\n" + "application/vnd.crick.clicker .clkx CrickSoftware - Clicker\n" + "application/vnd.crick.clicker.keyboard .clkk CrickSoftware - Clicker - Keyboard\n" + "application/vnd.crick.clicker.palette .clkp CrickSoftware - Clicker - Palette\n" + "application/vnd.crick.clicker.template .clkt CrickSoftware - Clicker - Template\n" + "application/vnd.crick.clicker.wordbank .clkw CrickSoftware - Clicker - Wordbank\n" + "application/vnd.criticaltools.wbs+xml .wbs Critical Tools - PERT Chart EXPERT\n" + "application/vnd.rig.cryptonote .cryptonote CryptoNote\n" + "chemical/x-cif .cif Crystallographic Interchange Format\n" + "chemical/x-cmdf .cmdf CrystalMaker Data Format\n" + "application/cu-seeme .cu CU-SeeMe\n" + "application/prs.cww .cww CU-Writer\n" + "text/vnd.curl .curl Curl - Applet\n" + "text/vnd.curl.dcurl .dcurl Curl - Detached Applet\n" + "text/vnd.curl.mcurl .mcurl Curl - Manifest File\n" + "text/vnd.curl.scurl .scurl Curl - Source Code\n" + "application/vnd.curl.car .car CURL Applet\n" + "application/vnd.curl.pcurl .pcurl CURL Applet\n" + "application/vnd.yellowriver-custom-menu .cmp CustomMenu\n" + "application/dssc+der .dssc Data Structure for the Security Suitability of Cryptographic Algorithms\n" + "application/dssc+xml .xdssc Data Structure for the Security Suitability of Cryptographic Algorithms\n" + "application/x-debian-package .deb Debian Package\n" + "audio/vnd.dece.audio .uva DECE Audio\n" + "image/vnd.dece.graphic .uvi DECE Graphic\n" + "video/vnd.dece.hd .uvh DECE High Definition Video\n" + "video/vnd.dece.mobile .uvm DECE Mobile Video\n" + "video/vnd.uvvu.mp4 .uvu DECE MP4\n" + "video/vnd.dece.pd .uvp DECE PD Video\n" + "video/vnd.dece.sd .uvs DECE SD Video\n" + "video/vnd.dece.video .uvv DECE Video\n" + "application/x-dvi .dvi Device Independent File Format (DVI)\n" + "application/vnd.fdsn.seed .seed Digital Siesmograph Networks - SEED Datafiles\n" + "application/x-dtbook+xml .dtb Digital Talking Book\n" + "application/x-dtbresource+xml .res Digital Talking Book - Resource File\n" + "application/vnd.dvb.ait .ait Digital Video Broadcasting\n" + "application/vnd.dvb.service .svc Digital Video Broadcasting\n" + "audio/vnd.digital-winds .eol Digital Winds Music\n" + "image/vnd.djvu .djvu DjVu\n" + "application/xml-dtd .dtd Document Type Definition\n" + "application/vnd.dolby.mlp .mlp Dolby Meridian Lossless Packing\n" + "application/x-doom .wad Doom Video Game\n" + "application/vnd.dpgraph .dpg DPGraph\n" + "audio/vnd.dra .dra DRA Audio\n" + "application/vnd.dreamfactory .dfac DreamFactory\n" + "audio/vnd.dts .dts DTS Audio\n" + "audio/vnd.dts.hd .dtshd DTS High Definition Audio\n" + "image/vnd.dwg .dwg DWG Drawing\n" + "application/vnd.dynageo .geo DynaGeo\n" + "application/ecmascript .es ECMAScript\n" + "application/vnd.ecowin.chart .mag EcoWin Chart\n" + "image/vnd.fujixerox.edmics-mmr .mmr EDMICS 2000\n" + "image/vnd.fujixerox.edmics-rlc .rlc EDMICS 2000\n" + "application/exi .exi Efficient XML Interchange\n" + "application/vnd.proteus.magazine .mgz EFI Proteus\n" + "application/epub+zip .epub Electronic Publication\n" + "message/rfc822 .eml Email Message\n" + "application/vnd.enliven .nml Enliven Viewer\n" + "application/vnd.is-xpr .xpr Express by Infoseek\n" + "image/vnd.xiff .xif eXtended Image File Format (XIFF)\n" + "application/vnd.xfdl .xfdl Extensible Forms Description Language\n" + "application/emma+xml .emma Extensible MultiModal Annotation\n" + "application/vnd.ezpix-album .ez2 EZPix Secure Photo Album\n" + "application/vnd.ezpix-package .ez3 EZPix Secure Photo Album\n" + "image/vnd.fst .fst FAST Search & Transfer ASA\n" + "video/vnd.fvt .fvt FAST Search & Transfer ASA\n" + "image/vnd.fastbidsheet .fbs FastBid Sheet\n" + "application/vnd.denovo.fcselayout-link .fe_launch FCS Express Layout Link\n" + "video/x-f4v .f4v Flash Video\n" + "video/x-flv .flv Flash Video\n" + "image/vnd.fpx .fpx FlashPix\n" + "image/vnd.net-fpx .npx FlashPix\n" + "text/vnd.fmi.flexstor .flx FLEXSTOR\n" + "video/x-fli .fli FLI/FLC Animation Format\n" + "application/vnd.fluxtime.clip .ftc FluxTime Clip\n" + "application/vnd.fdf .fdf Forms Data Format\n" + "text/x-fortran .f Fortran Source File\n" + "application/vnd.mif .mif FrameMaker Interchange Format\n" + "application/vnd.framemaker .fm FrameMaker Normal Format\n" + "image/x-freehand .fh FreeHand MX\n" + "application/vnd.fsc.weblaunch .fsc Friendly Software Corporation\n" + "application/vnd.frogans.fnc .fnc Frogans Player\n" + "application/vnd.frogans.ltf .ltf Frogans Player\n" + "application/vnd.fujixerox.ddd .ddd Fujitsu - Xerox 2D CAD Data\n" + "application/vnd.fujixerox.docuworks .xdw Fujitsu - Xerox DocuWorks\n" + "application/vnd.fujixerox.docuworks.binder .xbd Fujitsu - Xerox DocuWorks Binder\n" + "application/vnd.fujitsu.oasys .oas Fujitsu Oasys\n" + "application/vnd.fujitsu.oasys2 .oa2 Fujitsu Oasys\n" + "application/vnd.fujitsu.oasys3 .oa3 Fujitsu Oasys\n" + "application/vnd.fujitsu.oasysgp .fg5 Fujitsu Oasys\n" + "application/vnd.fujitsu.oasysprs .bh2 Fujitsu Oasys\n" + "application/x-futuresplash .spl FutureSplash Animator\n" + "application/vnd.fuzzysheet .fzs FuzzySheet\n" + "image/g3fax .g3 G3 Fax Image\n" + "application/vnd.gmx .gmx GameMaker ActiveX\n" + "model/vnd.gtw .gtw Gen-Trix Studio\n" + "application/vnd.genomatix.tuxedo .txd Genomatix Tuxedo Framework\n" + "application/vnd.geogebra.file .ggb GeoGebra\n" + "application/vnd.geogebra.tool .ggt GeoGebra\n" + "model/vnd.gdl .gdl Geometric Description Language (GDL)\n" + "application/vnd.geometry-explorer .gex GeoMetry Explorer\n" + "application/vnd.geonext .gxt GEONExT and JSXGraph\n" + "application/vnd.geoplan .g2w GeoplanW\n" + "application/vnd.geospace .g3w GeospacW\n" + "application/x-font-ghostscript .gsf Ghostscript Font\n" + "application/x-font-bdf .bdf Glyph Bitmap Distribution Format\n" + "application/x-gtar .gtar GNU Tar Files\n" + "application/x-texinfo .texinfo GNU Texinfo Document\n" + "application/x-gnumeric .gnumeric Gnumeric\n" + "application/vnd.google-earth.kml+xml .kml Google Earth - KML\n" + "application/vnd.google-earth.kmz .kmz Google Earth - Zipped KML\n" + "application/vnd.grafeq .gqf GrafEq\n" + "image/gif .gif Graphics Interchange Format\n" + "text/vnd.graphviz .gv Graphviz\n" + "application/vnd.groove-account .gac Groove - Account\n" + "application/vnd.groove-help .ghf Groove - Help\n" + "application/vnd.groove-identity-message .gim Groove - Identity Message\n" + "application/vnd.groove-injector .grv Groove - Injector\n" + "application/vnd.groove-tool-message .gtm Groove - Tool Message\n" + "application/vnd.groove-tool-template .tpl Groove - Tool Template\n" + "application/vnd.groove-vcard .vcg Groove - Vcard\n" + "video/h261 .h261 H.261\n" + "video/h263 .h263 H.263\n" + "video/h264 .h264 H.264\n" + "application/vnd.hp-hpid .hpid Hewlett Packard Instant Delivery\n" + "application/vnd.hp-hps .hps Hewlett-Packard's WebPrintSmart\n" + "application/x-hdf .hdf Hierarchical Data Format\n" + "audio/vnd.rip .rip Hit'n'Mix\n" + "application/vnd.hbci .hbci Homebanking Computer Interface (HBCI)\n" + "application/vnd.hp-jlyt .jlt HP Indigo Digital Press - Job Layout Languate\n" + "application/vnd.hp-pcl .pcl HP Printer Command Language\n" + "application/vnd.hp-hpgl .hpgl HP-GL/2 and HP RTL\n" + "application/vnd.yamaha.hv-script .hvs HV Script\n" + "application/vnd.yamaha.hv-dic .hvd HV Voice Dictionary\n" + "application/vnd.yamaha.hv-voice .hvp HV Voice Parameter\n" + "application/vnd.hydrostatix.sof-data .sfd-hdstx Hydrostatix Master Suite\n" + "application/hyperstudio .stk Hyperstudio\n" + "application/vnd.hal+xml .hal Hypertext Application Language\n" + "text/html .html HyperText Markup Language (HTML)\n" + "application/vnd.ibm.rights-management .irm IBM DB2 Rights Manager\n" + "application/vnd.ibm.secure-container .sc IBM Electronic Media Management System - Secure Container\n" + "text/calendar .ics iCalendar\n" + "application/vnd.iccprofile .icc ICC profile\n" + "image/x-icon .ico Icon Image\n" + "application/vnd.igloader .igl igLoader\n" + "image/ief .ief Image Exchange Format\n" + "application/vnd.immervision-ivp .ivp ImmerVision PURE Players\n" + "application/vnd.immervision-ivu .ivu ImmerVision PURE Players\n" + "application/reginfo+xml .rif IMS Networks\n" + "text/vnd.in3d.3dml .3dml In3D - 3DML\n" + "text/vnd.in3d.spot .spot In3D - 3DML\n" + "model/iges .igs Initial Graphics Exchange Specification (IGES)\n" + "application/vnd.intergeo .i2g Interactive Geometry Software\n" + "application/vnd.cinderella .cdy Interactive Geometry Software Cinderella\n" + "application/vnd.intercon.formnet .xpw Intercon FormNet\n" + "application/vnd.isac.fcs .fcs International Society for Advancement of Cytometry\n" + "application/ipfix .ipfix Internet Protocol Flow Information Export\n" + "application/pkix-cert .cer Internet Public Key Infrastructure - Certificate\n" + "application/pkixcmp .pki Internet Public Key Infrastructure - Certificate Management Protocole\n" + "application/pkix-crl .crl Internet Public Key Infrastructure - Certificate Revocation Lists\n" + "application/pkix-pkipath .pkipath Internet Public Key Infrastructure - Certification Path\n" + "application/vnd.insors.igm .igm IOCOM Visimeet\n" + "application/vnd.ipunplugged.rcprofile .rcprofile IP Unplugged Roaming Client\n" + "application/vnd.irepository.package+xml .irp iRepository / Lucidoc Editor\n" + "text/vnd.sun.j2me.app-descriptor .jad J2ME App Descriptor\n" + "application/java-archive .jar Java Archive\n" + "application/java-vm .class Java Bytecode File\n" + "application/x-java-jnlp-file .jnlp Java Network Launching Protocol\n" + "application/java-serialized-object .ser Java Serialized Object\n" + "text/x-java-source,java .java Java Source File\n" + "application/javascript .js JavaScript\n" + "application/json .json JavaScript Object Notation (JSON)\n" + "application/vnd.joost.joda-archive .joda Joda Archive\n" + "video/jpm .jpm JPEG 2000 Compound Image File Format\n" + "image/jpeg .jpeg, .jpg JPEG Image\n" + "image/x-citrix-jpeg .jpeg, .jpg JPEG Image (Citrix client)\n" + "image/pjpeg .pjpeg JPEG Image (Progressive)\n" + "video/jpeg .jpgv JPGVideo\n" + "application/vnd.kahootz .ktz Kahootz\n" + "application/vnd.chipnuts.karaoke-mmd .mmd Karaoke on Chipnuts Chipsets\n" + "application/vnd.kde.karbon .karbon KDE KOffice Office Suite - Karbon\n" + "application/vnd.kde.kchart .chrt KDE KOffice Office Suite - KChart\n" + "application/vnd.kde.kformula .kfo KDE KOffice Office Suite - Kformula\n" + "application/vnd.kde.kivio .flw KDE KOffice Office Suite - Kivio\n" + "application/vnd.kde.kontour .kon KDE KOffice Office Suite - Kontour\n" + "application/vnd.kde.kpresenter .kpr KDE KOffice Office Suite - Kpresenter\n" + "application/vnd.kde.kspread .ksp KDE KOffice Office Suite - Kspread\n" + "application/vnd.kde.kword .kwd KDE KOffice Office Suite - Kword\n" + "application/vnd.kenameaapp .htke Kenamea App\n" + "application/vnd.kidspiration .kia Kidspiration\n" + "application/vnd.kinar .kne Kinar Applications\n" + "application/vnd.kodak-descriptor .sse Kodak Storyshare\n" + "application/vnd.las.las+xml .lasxml Laser App Enterprise\n" + "application/x-latex .latex LaTeX\n" + "application/vnd.llamagraphics.life-balance.desktop .lbd Life Balance - Desktop Edition\n" + "application/vnd.llamagraphics.life-balance.exchange+xml .lbe Life Balance - Exchange Format\n" + "application/vnd.jam .jam Lightspeed Audio Lab\n" + "application/vnd.lotus-1-2-3 .123 Lotus 1-2-3\n" + "application/vnd.lotus-approach .apr Lotus Approach\n" + "application/vnd.lotus-freelance .pre Lotus Freelance\n" + "application/vnd.lotus-notes .nsf Lotus Notes\n" + "application/vnd.lotus-organizer .org Lotus Organizer\n" + "application/vnd.lotus-screencam .scm Lotus Screencam\n" + "application/vnd.lotus-wordpro .lwp Lotus Wordpro\n" + "audio/vnd.lucent.voice .lvp Lucent Voice\n" + "audio/x-mpegurl .m3u M3U (Multimedia Playlist)\n" + "video/x-m4v .m4v M4v\n" + "application/mac-binhex40 .hqx Macintosh BinHex 4.0\n" + "application/vnd.macports.portpkg .portpkg MacPorts Port System\n" + "application/vnd.osgeo.mapguide.package .mgp MapGuide DBXML\n" + "application/marc .mrc MARC Formats\n" + "application/marcxml+xml .mrcx MARC21 XML Schema\n" + "application/mxf .mxf Material Exchange Format\n" + "application/vnd.wolfram.player .nbp Mathematica Notebook Player\n" + "application/mathematica .ma Mathematica Notebooks\n" + "application/mathml+xml .mathml Mathematical Markup Language\n" + "application/mbox .mbox Mbox database files\n" + "application/vnd.medcalcdata .mc1 MedCalc\n" + "application/mediaservercontrol+xml .mscml Media Server Control Markup Language\n" + "application/vnd.mediastation.cdkey .cdkey MediaRemote\n" + "application/vnd.mfer .mwf Medical Waveform Encoding Format\n" + "application/vnd.mfmp .mfm Melody Format for Mobile Platform\n" + "model/mesh .msh Mesh Data Type\n" + "application/mads+xml .mads Metadata Authority Description Schema\n" + "application/mets+xml .mets Metadata Encoding and Transmission Standard\n" + "application/mods+xml .mods Metadata Object Description Schema\n" + "application/metalink4+xml .meta4 Metalink\n" + "application/vnd.mcd .mcd Micro CADAM Helix D&D\n" + "application/vnd.micrografx.flo .flo Micrografx\n" + "application/vnd.micrografx.igx .igx Micrografx iGrafx Professional\n" + "application/vnd.eszigno3+xml .es3 MICROSEC e-Szign½\n" + "application/x-msaccess .mdb Microsoft Access\n" + "video/x-ms-asf .asf Microsoft Advanced Systems Format (ASF)\n" + "application/x-msdownload .exe Microsoft Application\n" + "application/vnd.ms-artgalry .cil Microsoft Artgalry\n" + "application/vnd.ms-cab-compressed .cab Microsoft Cabinet File\n" + "application/vnd.ms-ims .ims Microsoft Class Server\n" + "application/x-ms-application .application Microsoft ClickOnce\n" + "application/x-msclip .clp Microsoft Clipboard Clip\n" + "image/vnd.ms-modi .mdi Microsoft Document Imaging Format\n" + "application/vnd.ms-fontobject .eot Microsoft Embedded OpenType\n" + "application/vnd.ms-excel .xls Microsoft Excel\n" + "application/vnd.ms-excel.addin.macroenabled.12 .xlam Microsoft Excel - Add-In File\n" + "application/vnd.ms-excel.sheet.binary.macroenabled.12 .xlsb Microsoft Excel - Binary Workbook\n" + "application/vnd.ms-excel.template.macroenabled.12 .xltm Microsoft Excel - Macro-Enabled Template File\n" + "application/vnd.ms-excel.sheet.macroenabled.12 .xlsm Microsoft Excel - Macro-Enabled Workbook\n" + "application/vnd.ms-htmlhelp .chm Microsoft Html Help File\n" + "application/x-mscardfile .crd Microsoft Information Card\n" + "application/vnd.ms-lrm .lrm Microsoft Learning Resource Module\n" + "application/x-msmediaview .mvb Microsoft MediaView\n" + "application/x-msmoney .mny Microsoft Money\n" + "application/vnd.openxmlformats-officedocument.presentationml.presentation .pptx Microsoft Office - OOXML - Presentation\n" + "application/vnd.openxmlformats-officedocument.presentationml.slide .sldx Microsoft Office - OOXML - Presentation (Slide)\n" + "application/vnd.openxmlformats-officedocument.presentationml.slideshow .ppsx Microsoft Office - OOXML - Presentation (Slideshow)\n" + "application/vnd.openxmlformats-officedocument.presentationml.template .potx Microsoft Office - OOXML - Presentation Template\n" + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet .xlsx Microsoft Office - OOXML - Spreadsheet\n" + "application/vnd.openxmlformats-officedocument.spreadsheetml.template .xltx Microsoft Office - OOXML - Spreadsheet Template\n" + "application/vnd.openxmlformats-officedocument.wordprocessingml.document .docx Microsoft Office - OOXML - Word Document\n" + "application/vnd.openxmlformats-officedocument.wordprocessingml.template .dotx Microsoft Office - OOXML - Word Document Template\n" + "application/x-msbinder .obd Microsoft Office Binder\n" + "application/vnd.ms-officetheme .thmx Microsoft Office System Release Theme\n" + "application/onenote .onetoc Microsoft OneNote\n" + "audio/vnd.ms-playready.media.pya .pya Microsoft PlayReady Ecosystem\n" + "video/vnd.ms-playready.media.pyv .pyv Microsoft PlayReady Ecosystem Video\n" + "application/vnd.ms-powerpoint .ppt Microsoft PowerPoint\n" + "application/vnd.ms-powerpoint.addin.macroenabled.12 .ppam Microsoft PowerPoint - Add-in file\n" + "application/vnd.ms-powerpoint.slide.macroenabled.12 .sldm Microsoft PowerPoint - Macro-Enabled Open XML Slide\n" + "application/vnd.ms-powerpoint.presentation.macroenabled.12 .pptm Microsoft PowerPoint - Macro-Enabled Presentation File\n" + "application/vnd.ms-powerpoint.slideshow.macroenabled.12 .ppsm Microsoft PowerPoint - Macro-Enabled Slide Show File\n" + "application/vnd.ms-powerpoint.template.macroenabled.12 .potm Microsoft PowerPoint - Macro-Enabled Template File\n" + "application/vnd.ms-project .mpp Microsoft Project\n" + "application/x-mspublisher .pub Microsoft Publisher\n" + "application/x-msschedule .scd Microsoft Schedule+\n" + "application/x-silverlight-app .xap Microsoft Silverlight\n" + "application/vnd.ms-pki.stl .stl Microsoft Trust UI Provider - Certificate Trust Link\n" + "application/vnd.ms-pki.seccat .cat Microsoft Trust UI Provider - Security Catalog\n" + "application/vnd.visio .vsd Microsoft Visio\n" + "application/vnd.visio2013 .vsdx Microsoft Visio 2013\n" + "video/x-ms-wm .wm Microsoft Windows Media\n" + "audio/x-ms-wma .wma Microsoft Windows Media Audio\n" + "audio/x-ms-wax .wax Microsoft Windows Media Audio Redirector\n" + "video/x-ms-wmx .wmx Microsoft Windows Media Audio/Video Playlist\n" + "application/x-ms-wmd .wmd Microsoft Windows Media Player Download Package\n" + "application/vnd.ms-wpl .wpl Microsoft Windows Media Player Playlist\n" + "application/x-ms-wmz .wmz Microsoft Windows Media Player Skin Package\n" + "video/x-ms-wmv .wmv Microsoft Windows Media Video\n" + "video/x-ms-wvx .wvx Microsoft Windows Media Video Playlist\n" + "application/x-msmetafile .wmf Microsoft Windows Metafile\n" + "application/x-msterminal .trm Microsoft Windows Terminal Services\n" + "application/msword .doc Microsoft Word\n" + "application/vnd.ms-word.document.macroenabled.12 .docm Microsoft Word - Macro-Enabled Document\n" + "application/vnd.ms-word.template.macroenabled.12 .dotm Microsoft Word - Macro-Enabled Template\n" + "application/x-mswrite .wri Microsoft Wordpad\n" + "application/vnd.ms-works .wps Microsoft Works\n" + "application/x-ms-xbap .xbap Microsoft XAML Browser Application\n" + "application/vnd.ms-xpsdocument .xps Microsoft XML Paper Specification\n" + "audio/midi .mid MIDI - Musical Instrument Digital Interface\n" + "application/vnd.ibm.minipay .mpy MiniPay\n" + "application/vnd.ibm.modcap .afp MO:DCA-P\n" + "application/vnd.jcp.javame.midlet-rms .rms Mobile Information Device Profile\n" + "application/vnd.tmobile-livetv .tmo MobileTV\n" + "application/x-mobipocket-ebook .prc Mobipocket\n" + "application/vnd.mobius.mbk .mbk Mobius Management Systems - Basket file\n" + "application/vnd.mobius.dis .dis Mobius Management Systems - Distribution Database\n" + "application/vnd.mobius.plc .plc Mobius Management Systems - Policy Definition Language File\n" + "application/vnd.mobius.mqy .mqy Mobius Management Systems - Query File\n" + "application/vnd.mobius.msl .msl Mobius Management Systems - Script Language\n" + "application/vnd.mobius.txf .txf Mobius Management Systems - Topic Index File\n" + "application/vnd.mobius.daf .daf Mobius Management Systems - UniversalArchive\n" + "text/vnd.fly .fly mod_fly / fly.cgi\n" + "application/vnd.mophun.certificate .mpc Mophun Certificate\n" + "application/vnd.mophun.application .mpn Mophun VM\n" + "video/mj2 .mj2 Motion JPEG 2000\n" + "audio/mpeg .mpga MPEG Audio\n" + "video/vnd.mpegurl .mxu MPEG Url\n" + "video/mpeg .mpeg MPEG Video\n" + "application/mp21 .m21 MPEG-21\n" + "audio/mp4 .mp4a MPEG-4 Audio\n" + "video/mp4 .mp4 MPEG-4 Video\n" + "application/mp4 .mp4 MPEG4\n" + "application/vnd.apple.mpegurl .m3u8 Multimedia Playlist Unicode\n" + "application/vnd.musician .mus MUsical Score Interpreted Code Invented for the ASCII designation of Notation\n" + "application/vnd.muvee.style .msty Muvee Automatic Video Editing\n" + "application/xv+xml .mxml MXML\n" + "application/vnd.nokia.n-gage.data .ngdat N-Gage Game Data\n" + "application/vnd.nokia.n-gage.symbian.install .n-gage N-Gage Game Installer\n" + "application/x-dtbncx+xml .ncx Navigation Control file for XML (for ePub)\n" + "application/x-netcdf .nc Network Common Data Form (NetCDF)\n" + "application/vnd.neurolanguage.nlu .nlu neuroLanguage\n" + "application/vnd.dna .dna New Moon Liftoff/DNA\n" + "application/vnd.noblenet-directory .nnd NobleNet Directory\n" + "application/vnd.noblenet-sealer .nns NobleNet Sealer\n" + "application/vnd.noblenet-web .nnw NobleNet Web\n" + "application/vnd.nokia.radio-preset .rpst Nokia Radio Application - Preset\n" + "application/vnd.nokia.radio-presets .rpss Nokia Radio Application - Preset\n" + "text/n3 .n3 Notation3\n" + "application/vnd.novadigm.edm .edm Novadigm's RADIA and EDM products\n" + "application/vnd.novadigm.edx .edx Novadigm's RADIA and EDM products\n" + "application/vnd.novadigm.ext .ext Novadigm's RADIA and EDM products\n" + "application/vnd.flographit .gph NpGraphIt\n" + "audio/vnd.nuera.ecelp4800 .ecelp4800 Nuera ECELP 4800\n" + "audio/vnd.nuera.ecelp7470 .ecelp7470 Nuera ECELP 7470\n" + "audio/vnd.nuera.ecelp9600 .ecelp9600 Nuera ECELP 9600\n" + "application/oda .oda Office Document Architecture\n" + "application/ogg .ogx Ogg\n" + "audio/ogg .oga Ogg Audio\n" + "video/ogg .ogv Ogg Video\n" + "application/vnd.oma.dd2+xml .dd2 OMA Download Agents\n" + "application/vnd.oasis.opendocument.text-web .oth Open Document Text Web\n" + "application/oebps-package+xml .opf Open eBook Publication Structure\n" + "application/vnd.intu.qbo .qbo Open Financial Exchange\n" + "application/vnd.openofficeorg.extension .oxt Open Office Extension\n" + "application/vnd.yamaha.openscoreformat .osf Open Score Format\n" + "audio/webm .weba Open Web Media Project - Audio\n" + "video/webm .webm Open Web Media Project - Video\n" + "application/vnd.oasis.opendocument.chart .odc OpenDocument Chart\n" + "application/vnd.oasis.opendocument.chart-template .otc OpenDocument Chart Template\n" + "application/vnd.oasis.opendocument.database .odb OpenDocument Database\n" + "application/vnd.oasis.opendocument.formula .odf OpenDocument Formula\n" + "application/vnd.oasis.opendocument.formula-template .odft OpenDocument Formula Template\n" + "application/vnd.oasis.opendocument.graphics .odg OpenDocument Graphics\n" + "application/vnd.oasis.opendocument.graphics-template .otg OpenDocument Graphics Template\n" + "application/vnd.oasis.opendocument.image .odi OpenDocument Image\n" + "application/vnd.oasis.opendocument.image-template .oti OpenDocument Image Template\n" + "application/vnd.oasis.opendocument.presentation .odp OpenDocument Presentation\n" + "application/vnd.oasis.opendocument.presentation-template .otp OpenDocument Presentation Template\n" + "application/vnd.oasis.opendocument.spreadsheet .ods OpenDocument Spreadsheet\n" + "application/vnd.oasis.opendocument.spreadsheet-template .ots OpenDocument Spreadsheet Template\n" + "application/vnd.oasis.opendocument.text .odt OpenDocument Text\n" + "application/vnd.oasis.opendocument.text-master .odm OpenDocument Text Master\n" + "application/vnd.oasis.opendocument.text-template .ott OpenDocument Text Template\n" + "image/ktx .ktx OpenGL Textures (KTX)\n" + "application/vnd.sun.xml.calc .sxc OpenOffice - Calc (Spreadsheet)\n" + "application/vnd.sun.xml.calc.template .stc OpenOffice - Calc Template (Spreadsheet)\n" + "application/vnd.sun.xml.draw .sxd OpenOffice - Draw (Graphics)\n" + "application/vnd.sun.xml.draw.template .std OpenOffice - Draw Template (Graphics)\n" + "application/vnd.sun.xml.impress .sxi OpenOffice - Impress (Presentation)\n" + "application/vnd.sun.xml.impress.template .sti OpenOffice - Impress Template (Presentation)\n" + "application/vnd.sun.xml.math .sxm OpenOffice - Math (Formula)\n" + "application/vnd.sun.xml.writer .sxw OpenOffice - Writer (Text - HTML)\n" + "application/vnd.sun.xml.writer.global .sxg OpenOffice - Writer (Text - HTML)\n" + "application/vnd.sun.xml.writer.template .stw OpenOffice - Writer Template (Text - HTML)\n" + "application/x-font-otf .otf OpenType Font File\n" + "application/vnd.yamaha.openscoreformat.osfpvg+xml .osfpvg OSFPVG\n" + "application/vnd.osgi.dp .dp OSGi Deployment Package\n" + "application/vnd.palm .pdb PalmOS Data\n" + "text/x-pascal .p Pascal Source File\n" + "application/vnd.pawaafile .paw PawaaFILE\n" + "application/vnd.hp-pclxl .pclxl PCL 6 Enhanced (Formely PCL XL)\n" + "application/vnd.picsel .efif Pcsel eFIF File\n" + "image/x-pcx .pcx PCX Image\n" + "image/vnd.adobe.photoshop .psd Photoshop Document\n" + "application/pics-rules .prf PICSRules\n" + "image/x-pict .pic PICT Image\n" + "application/x-chat .chat pIRCh\n" + "application/pkcs10 .p10 PKCS #10 - Certification Request Standard\n" + "application/x-pkcs12 .p12 PKCS #12 - Personal Information Exchange Syntax Standard\n" + "application/pkcs7-mime .p7m PKCS #7 - Cryptographic Message Syntax Standard\n" + "application/pkcs7-signature .p7s PKCS #7 - Cryptographic Message Syntax Standard\n" + "application/x-pkcs7-certreqresp .p7r PKCS #7 - Cryptographic Message Syntax Standard (Certificate Request Response)\n" + "application/x-pkcs7-certificates .p7b PKCS #7 - Cryptographic Message Syntax Standard (Certificates)\n" + "application/pkcs8 .p8 PKCS #8 - Private-Key Information Syntax Standard\n" + "application/vnd.pocketlearn .plf PocketLearn Viewers\n" + "image/x-portable-anymap .pnm Portable Anymap Image\n" + "image/x-portable-bitmap .pbm Portable Bitmap Format\n" + "application/x-font-pcf .pcf Portable Compiled Format\n" + "application/font-tdpfr .pfr Portable Font Resource\n" + "application/x-chess-pgn .pgn Portable Game Notation (Chess Games)\n" + "image/x-portable-graymap .pgm Portable Graymap Format\n" + "image/png .png Portable Network Graphics (PNG)\n" + "image/x-citrix-png .png Portable Network Graphics (PNG) (Citrix client)\n" + "image/x-png .png Portable Network Graphics (PNG) (x-token)\n" + "image/x-portable-pixmap .ppm Portable Pixmap Format\n" + "application/pskc+xml .pskcxml Portable Symmetric Key Container\n" + "application/vnd.ctc-posml .pml PosML\n" + "application/postscript .ai PostScript\n" + "application/x-font-type1 .pfa PostScript Fonts\n" + "application/vnd.powerbuilder6 .pbd PowerBuilder\n" + "application/pgp-encrypted .pgp Pretty Good Privacy\n" + "application/pgp-signature .pgp Pretty Good Privacy - Signature\n" + "application/vnd.previewsystems.box .box Preview Systems ZipLock/VBox\n" + "application/vnd.pvi.ptid1 .ptid Princeton Video Image\n" + "application/pls+xml .pls Pronunciation Lexicon Specification\n" + "application/vnd.pg.format .str Proprietary P&G Standard Reporting System\n" + "application/vnd.pg.osasli .ei6 Proprietary P&G Standard Reporting System\n" + "text/prs.lines.tag .dsc PRS Lines Tag\n" + "application/x-font-linux-psf .psf PSF Fonts\n" + "application/vnd.publishare-delta-tree .qps PubliShare Objects\n" + "application/vnd.pmi.widget .wg Qualcomm's Plaza Mobile Internet\n" + "application/vnd.quark.quarkxpress .qxd QuarkXpress\n" + "application/vnd.epson.esf .esf QUASS Stream Player\n" + "application/vnd.epson.msf .msf QUASS Stream Player\n" + "application/vnd.epson.ssf .ssf QUASS Stream Player\n" + "application/vnd.epson.quickanime .qam QuickAnime Player\n" + "application/vnd.intu.qfx .qfx Quicken\n" + "video/quicktime .qt Quicktime Video\n" + "application/x-rar-compressed .rar RAR Archive\n" + "audio/x-pn-realaudio .ram Real Audio Sound\n" + "audio/x-pn-realaudio-plugin .rmp Real Audio Sound\n" + "application/rsd+xml .rsd Really Simple Discovery\n" + "application/vnd.rn-realmedia .rm RealMedia\n" + "application/vnd.realvnc.bed .bed RealVNC\n" + "application/vnd.recordare.musicxml .mxl Recordare Applications\n" + "application/vnd.recordare.musicxml+xml .musicxml Recordare Applications\n" + "application/relax-ng-compact-syntax .rnc Relax NG Compact Syntax\n" + "application/vnd.data-vision.rdz .rdz RemoteDocs R-Viewer\n" + "application/rdf+xml .rdf Resource Description Framework\n" + "application/vnd.cloanto.rp9 .rp9 RetroPlatform Player\n" + "application/vnd.jisp .jisp RhymBox\n" + "application/rtf .rtf Rich Text Format\n" + "text/richtext .rtx Rich Text Format (RTF)\n" + "application/vnd.route66.link66+xml .link66 ROUTE 66 Location Based Services\n" + "application/rss+xml .rss, .xml RSS - Really Simple Syndication\n" + "application/shf+xml .shf S Hexdump Format\n" + "application/vnd.sailingtracker.track .st SailingTracker\n" + "image/svg+xml .svg Scalable Vector Graphics (SVG)\n" + "application/vnd.sus-calendar .sus ScheduleUs\n" + "application/sru+xml .sru Search/Retrieve via URL Response Format\n" + "application/set-payment-initiation .setpay Secure Electronic Transaction - Payment\n" + "application/set-registration-initiation .setreg Secure Electronic Transaction - Registration\n" + "application/vnd.sema .sema Secured eMail\n" + "application/vnd.semd .semd Secured eMail\n" + "application/vnd.semf .semf Secured eMail\n" + "application/vnd.seemail .see SeeMail\n" + "application/x-font-snf .snf Server Normal Format\n" + "application/scvp-vp-request .spq Server-Based Certificate Validation Protocol - Validation Policies - Request\n" + "application/scvp-vp-response .spp Server-Based Certificate Validation Protocol - Validation Policies - Response\n" + "application/scvp-cv-request .scq Server-Based Certificate Validation Protocol - Validation Request\n" + "application/scvp-cv-response .scs Server-Based Certificate Validation Protocol - Validation Response\n" + "application/sdp .sdp Session Description Protocol\n" + "text/x-setext .etx Setext\n" + "video/x-sgi-movie .movie SGI Movie\n" + "application/vnd.shana.informed.formdata .ifm Shana Informed Filler\n" + "application/vnd.shana.informed.formtemplate .itp Shana Informed Filler\n" + "application/vnd.shana.informed.interchange .iif Shana Informed Filler\n" + "application/vnd.shana.informed.package .ipk Shana Informed Filler\n" + "application/thraud+xml .tfi Sharing Transaction Fraud Data\n" + "application/x-shar .shar Shell Archive\n" + "image/x-rgb .rgb Silicon Graphics RGB Bitmap\n" + "application/vnd.epson.salt .slt SimpleAnimeLite Player\n" + "application/vnd.accpac.simply.aso .aso Simply Accounting\n" + "application/vnd.accpac.simply.imp .imp Simply Accounting - Data Import\n" + "application/vnd.simtech-mindmapper .twd SimTech MindMapper\n" + "application/vnd.commonspace .csp Sixth Floor Media - CommonSpace\n" + "application/vnd.yamaha.smaf-audio .saf SMAF Audio\n" + "application/vnd.smaf .mmf SMAF File\n" + "application/vnd.yamaha.smaf-phrase .spf SMAF Phrase\n" + "application/vnd.smart.teacher .teacher SMART Technologies Apps\n" + "application/vnd.svd .svd SourceView Document\n" + "application/sparql-query .rq SPARQL - Query\n" + "application/sparql-results+xml .srx SPARQL - Results\n" + "application/srgs .gram Speech Recognition Grammar Specification\n" + "application/srgs+xml .grxml Speech Recognition Grammar Specification - XML\n" + "application/ssml+xml .ssml Speech Synthesis Markup Language\n" + "application/vnd.koan .skp SSEYO Koan Play File\n" + "text/sgml .sgml Standard Generalized Markup Language (SGML)\n" + "application/vnd.stardivision.calc .sdc StarOffice - Calc\n" + "application/vnd.stardivision.draw .sda StarOffice - Draw\n" + "application/vnd.stardivision.impress .sdd StarOffice - Impress\n" + "application/vnd.stardivision.math .smf StarOffice - Math\n" + "application/vnd.stardivision.writer .sdw StarOffice - Writer\n" + "application/vnd.stardivision.writer-global .sgl StarOffice - Writer (Global)\n" + "application/vnd.stepmania.stepchart .sm StepMania\n" + "application/x-stuffit .sit Stuffit Archive\n" + "application/x-stuffitx .sitx Stuffit Archive\n" + "application/vnd.solent.sdkm+xml .sdkm SudokuMagic\n" + "application/vnd.olpc-sugar .xo Sugar Linux Application Bundle\n" + "audio/basic .au Sun Audio - Au file format\n" + "application/vnd.wqd .wqd SundaHus WQ\n" + "application/vnd.symbian.install .sis Symbian Install Package\n" + "application/smil+xml .smi Synchronized Multimedia Integration Language\n" + "application/vnd.syncml+xml .xsm SyncML\n" + "application/vnd.syncml.dm+wbxml .bdm SyncML - Device Management\n" + "application/vnd.syncml.dm+xml .xdm SyncML - Device Management\n" + "application/x-sv4cpio .sv4cpio System V Release 4 CPIO Archive\n" + "application/x-sv4crc .sv4crc System V Release 4 CPIO Checksum Data\n" + "application/sbml+xml .sbml Systems Biology Markup Language\n" + "text/tab-separated-values .tsv Tab Seperated Values\n" + "image/tiff .tiff Tagged Image File Format\n" + "application/vnd.tao.intent-module-archive .tao Tao Intent\n" + "application/x-tar .tar Tar File (Tape Archive)\n" + "application/x-tcl .tcl Tcl Script\n" + "application/x-tex .tex TeX\n" + "application/x-tex-tfm .tfm TeX Font Metric\n" + "application/tei+xml .tei Text Encoding and Interchange\n" + "text/plain .txt Text File\n" + "application/vnd.spotfire.dxp .dxp TIBCO Spotfire\n" + "application/vnd.spotfire.sfs .sfs TIBCO Spotfire\n" + "application/timestamped-data .tsd Time Stamped Data Envelope\n" + "application/vnd.trid.tpt .tpt TRI Systems Config\n" + "application/vnd.triscape.mxs .mxs Triscape Map Explorer\n" + "text/troff .t troff\n" + "application/vnd.trueapp .tra True BASIC\n" + "application/x-font-ttf .ttf TrueType Font\n" + "text/turtle .ttl Turtle (Terse RDF Triple Language)\n" + "application/vnd.umajin .umj UMAJIN\n" + "application/vnd.uoml+xml .uoml Unique Object Markup Language\n" + "application/vnd.unity .unityweb Unity 3d\n" + "application/vnd.ufdl .ufd Universal Forms Description Language\n" + "text/uri-list .uri URI Resolution Services\n" + "application/vnd.uiq.theme .utz User Interface Quartz - Theme (Symbian)\n" + "application/x-ustar .ustar Ustar (Uniform Standard Tape Archive)\n" + "text/x-uuencode .uu UUEncode\n" + "text/x-vcalendar .vcs vCalendar\n" + "text/x-vcard .vcf vCard\n" + "application/x-cdlink .vcd Video CD\n" + "application/vnd.vsf .vsf Viewport+\n" + "model/vrml .wrl Virtual Reality Modeling Language\n" + "application/vnd.vcx .vcx VirtualCatalog\n" + "model/vnd.mts .mts Virtue MTS\n" + "model/vnd.vtu .vtu Virtue VTU\n" + "application/vnd.visionary .vis Visionary\n" + "video/vnd.vivo .viv Vivo\n" + "application/ccxml+xml, .ccxml Voice Browser Call Control\n" + "application/voicexml+xml .vxml VoiceXML\n" + "application/x-wais-source .src WAIS Source\n" + "application/vnd.wap.wbxml .wbxml WAP Binary XML (WBXML)\n" + "image/vnd.wap.wbmp .wbmp WAP Bitamp (WBMP)\n" + "audio/x-wav .wav Waveform Audio File Format (WAV)\n" + "application/davmount+xml .davmount Web Distributed Authoring and Versioning\n" + "application/x-font-woff .woff Web Open Font Format\n" + "application/wspolicy+xml .wspolicy Web Services Policy\n" + "image/webp .webp WebP Image\n" + "application/vnd.webturbo .wtb WebTurbo\n" + "application/widget .wgt Widget Packaging and XML Configuration\n" + "application/winhlp .hlp WinHelp\n" + "text/vnd.wap.wml .wml Wireless Markup Language (WML)\n" + "text/vnd.wap.wmlscript .wmls Wireless Markup Language Script (WMLScript)\n" + "application/vnd.wap.wmlscriptc .wmlsc WMLScript\n" + "application/vnd.wordperfect .wpd Wordperfect\n" + "application/vnd.wt.stf .stf Worldtalk\n" + "application/wsdl+xml .wsdl WSDL - Web Services Description Language\n" + "image/x-xbitmap .xbm X BitMap\n" + "image/x-xpixmap .xpm X PixMap\n" + "image/x-xwindowdump .xwd X Window Dump\n" + "application/x-x509-ca-cert .der X.509 Certificate\n" + "application/x-xfig .fig Xfig\n" + "application/xhtml+xml .xhtml XHTML - The Extensible HyperText Markup Language\n" + "application/xml .xml XML - Extensible Markup Language\n" + "application/xcap-diff+xml .xdf XML Configuration Access Protocol - XCAP Diff\n" + "application/xenc+xml .xenc XML Encryption Syntax and Processing\n" + "application/patch-ops-error+xml .xer XML Patch Framework\n" + "application/resource-lists+xml .rl XML Resource Lists\n" + "application/rls-services+xml .rs XML Resource Lists\n" + "application/resource-lists-diff+xml .rld XML Resource Lists Diff\n" + "application/xslt+xml .xslt XML Transformations\n" + "application/xop+xml .xop XML-Binary Optimized Packaging\n" + "application/x-xpinstall .xpi XPInstall - Mozilla\n" + "application/xspf+xml .xspf XSPF - XML Shareable Playlist Format\n" + "application/vnd.mozilla.xul+xml .xul XUL - XML User Interface Language\n" + "chemical/x-xyz .xyz XYZ File Format\n" + "text/yaml .yaml YAML Ain't Markup Language / Yet Another Markup Language\n" + "application/yang .yang YANG Data Modeling Language\n" + "application/yin+xml .yin YIN (YANG - XML)\n" + "application/vnd.zul .zir Z.U.L. Geometry\n" + "application/zip .zip Zip Archive\n" + "application/vnd.handheld-entertainment+xml .zmm ZVUE Media Manager\n" + "application/vnd.zzazz.deck+xml .zaz Zzazz Deck\n"; final Pattern pattern = Pattern.compile(regex, Pattern.MULTILINE); final Matcher matcher = pattern.matcher(string); while (matcher.find()) { System.out.println("Full match: " + matcher.group(0)); for (int i = 1; i <= matcher.groupCount(); i++) { System.out.println("Group " + i + ": " + matcher.group(i)); } } } }

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for Java, please visit: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html