Regular Expressions 101

Save & Share

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 (4)

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 = "([a-zA-Z ]*)(\\s*?)(\\(see \\d\\))?(\\s*?)(\\d{2}\\.\\d{2})"; final String string = "\"REGISTER OF WAGE DETERMINATIONS UNDER | U.S. DEPARTMENT OF LABOR \n" + " THE SERVICE CONTRACT ACT | EMPLOYMENT STANDARDS ADMINISTRATION \n" + "By direction of the Secretary of Labor | WAGE AND HOUR DIVISION \n" + " | WASHINGTON D.C. 20210 \n" + " |\n" + " |\n" + " |\n" + " | Wage Determination No.: 2015-4269\n" + "Daniel W. Simms Division of | Revision No.: 12\n" + "Director Wage Determinations| Date Of Last Revision: 04/23/2020\n" + "_______________________________________|____________________________________________\n" + "Note: Under Executive Order (EO) 13658 an hourly minimum\n\n" + "wage of $10.80 for calendar year 2020 applies to all contracts subject to the \n" + "Service Contract Act for which the contract is awarded (and any solicitation \n" + "was issued) on or after January 1 2015. If this contract is covered by the EO\n" + " the contractor must pay all workers in any classification listed on this wage \n" + "determination at least $10.80 per hour (or the applicable wage rate listed on \n" + "this wage determination if it is higher) for all hours spent performing on \n" + "the contract in calendar year 2020. The EO minimum wage rate will be adjusted \n" + "annually. Additional information on contractor requirements and worker \n" + "protections under the EO is available at www.dol.gov/whd/govcontracts.\n\n\n\n" + "____________________________________________________________________________________\n" + "State: Maryland \n\n\n\n" + "Area: Maryland Counties of Frederick Montgomery\n" + "____________________________________________________________________________________\n\n" + " **Fringe Benefits Required Follow the Occupational Listing** \n\n" + "OCCUPATION CODE - TITLE FOOTNOTE RATE\n\n" + "01000 - Administrative Support And Clerical Occupations\n" + " 01011 - Accounting Clerk I 19.10\n" + " 01012 - Accounting Clerk II 21.44\n" + " 01013 - Accounting Clerk III 23.99\n" + " 01020 - Administrative Assistant 35.24\n" + " 01035 - Court Reporter 24.02\n" + " 01041 - Customer Service Representative I 15.13\n" + " 01042 - Customer Service Representative II 17.01\n" + " 01043 - Customer Service Representative III 18.56\n" + " 01051 - Data Entry Operator I 16.64\n" + " 01052 - Data Entry Operator II 18.16\n" + " 01060 - Dispatcher Motor Vehicle 20.54\n" + " 01070 - Document Preparation Clerk 17.75\n" + " 01090 - Duplicating Machine Operator 17.75\n" + " 01111 - General Clerk I 15.11\n" + " 01112 - General Clerk II 16.49\n" + " 01113 - General Clerk III 18.74\n" + " 01120 - Housing Referral Assistant 25.29\n" + " 01141 - Messenger Courier 18.38\n" + " 01191 - Order Clerk I 16.61\n" + " 01192 - Order Clerk II 18.12\n" + " 01261 - Personnel Assistant (Employment) I 19.09\n" + " 01262 - Personnel Assistant (Employment) II 21.36\n" + " 01263 - Personnel Assistant (Employment) III 23.81\n" + " 01270 - Production Control Clerk 26.18\n" + " 01290 - Rental Clerk 16.55\n" + " 01300 - Scheduler Maintenance 18.07\n" + " 01311 - Secretary I 18.07\n" + " 01312 - Secretary II 20.18\n" + " 01313 - Secretary III 25.29\n" + " 01320 - Service Order Dispatcher 18.36\n" + " 01410 - Supply Technician 35.24\n" + " 01420 - Survey Worker 20.03\n" + " 01460 - Switchboard Operator/Receptionist 15.69\n" + " 01531 - Travel Clerk I 17.00\n" + " 01532 - Travel Clerk II 18.51\n" + " 01533 - Travel Clerk III 20.01\n" + " 01611 - Word Processor I 17.41\n" + " 01612 - Word Processor II 19.55\n" + " 01613 - Word Processor III 21.87\n" + "05000 - Automotive Service Occupations\n" + " 05005 - Automobile Body Repairer Fiberglass 29.42\n" + " 05010 - Automotive Electrician 24.58\n" + " 05040 - Automotive Glass Installer 23.15\n" + " 05070 - Automotive Worker 23.15\n" + " 05110 - Mobile Equipment Servicer 19.91\n" + " 05130 - Motor Equipment Metal Mechanic 25.88\n" + " 05160 - Motor Equipment Metal Worker 23.15\n" + " 05190 - Motor Vehicle Mechanic 25.88\n" + " 05220 - Motor Vehicle Mechanic Helper 18.49\n" + " 05250 - Motor Vehicle Upholstery Worker 21.63\n" + " 05280 - Motor Vehicle Wrecker 23.15\n" + " 05310 - Painter Automotive 24.58\n" + " 05340 - Radiator Repair Specialist 23.15\n" + " 05370 - Tire Repairer 14.44\n" + " 05400 - Transmission Repair Specialist 25.88\n" + "07000 - Food Preparation And Service Occupations\n" + " 07010 - Baker 14.36\n" + " 07041 - Cook I 16.47\n" + " 07042 - Cook II 19.15\n" + " 07070 - Dishwasher 12.23\n" + " 07130 - Food Service Worker 13.12\n" + " 07210 - Meat Cutter 20.58\n" + " 07260 - Waiter/Waitress 11.74\n" + "09000 - Furniture Maintenance And Repair Occupations\n" + " 09010 - Electrostatic Spray Painter 19.86\n" + " 09040 - Furniture Handler 14.06\n" + " 09080 - Furniture Refinisher 20.23\n" + " 09090 - Furniture Refinisher Helper 15.52\n" + " 09110 - Furniture Repairer Minor 17.94\n" + " 09130 - Upholsterer 19.86\n" + "11000 - General Services And Support Occupations\n" + " 11030 - Cleaner Vehicles 12.75\n" + " 11060 - Elevator Operator 14.41\n" + " 11090 - Gardener 20.42\n" + " 11122 - Housekeeping Aide 14.41\n" + " 11150 - Janitor 14.41\n" + " 11210 - Laborer Grounds Maintenance 15.24\n" + " 11240 - Maid or Houseman 13.85\n" + " 11260 - Pruner 13.80\n" + " 11270 - Tractor Operator 18.68\n" + " 11330 - Trail Maintenance Worker 15.24\n" + " 11360 - Window Cleaner 15.91\n" + "12000 - Health Occupations\n" + " 12010 - Ambulance Driver 22.67\n" + " 12011 - Breath Alcohol Technician 23.39\n" + " 12012 - Certified Occupational Therapist Assistant 32.95\n" + " 12015 - Certified Physical Therapist Assistant 28.52\n" + " 12020 - Dental Assistant 22.82\n" + " 12025 - Dental Hygienist 49.23\n" + " 12030 - EKG Technician 33.14\n" + " 12035 - Electroneurodiagnostic Technologist 33.14\n" + " 12040 - Emergency Medical Technician 22.67\n" + " 12071 - Licensed Practical Nurse I 21.98\n" + " 12072 - Licensed Practical Nurse II 24.59\n" + " 12073 - Licensed Practical Nurse III 27.41\n" + " 12100 - Medical Assistant 18.68\n" + " 12130 - Medical Laboratory Technician 29.04\n" + " 12160 - Medical Record Clerk 21.08\n" + " 12190 - Medical Record Technician 23.60\n" + " 12195 - Medical Transcriptionist 20.69\n" + " 12210 - Nuclear Medicine Technologist 41.59\n" + " 12221 - Nursing Assistant I 12.52\n" + " 12222 - Nursing Assistant II 14.08\n" + " 12223 - Nursing Assistant III 15.36\n" + " 12224 - Nursing Assistant IV 17.24\n" + " 12235 - Optical Dispenser 24.41\n" + " 12236 - Optical Technician 21.81\n" + " 12250 - Pharmacy Technician 18.12\n" + " 12280 - Phlebotomist 19.35\n" + " 12305 - Radiologic Technologist 35.25\n" + " 12311 - Registered Nurse I 30.40\n" + " 12312 - Registered Nurse II 36.78\n" + " 12313 - Registered Nurse II Specialist 36.78\n" + " 12314 - Registered Nurse III 44.14\n" + " 12315 - Registered Nurse III Anesthetist 44.14\n" + " 12316 - Registered Nurse IV 52.91\n" + " 12317 - Scheduler (Drug and Alcohol Testing) 28.97\n" + " 12320 - Substance Abuse Treatment Counselor 25.09\n" + "13000 - Information And Arts Occupations\n" + " 13011 - Exhibits Specialist I 23.03\n" + " 13012 - Exhibits Specialist II 28.53\n" + " 13013 - Exhibits Specialist III 34.90\n" + " 13041 - Illustrator I 20.62\n" + " 13042 - Illustrator II 25.55\n" + " 13043 - Illustrator III 31.24\n" + " 13047 - Librarian 41.25\n" + " 13050 - Library Aide/Clerk 14.21\n" + " 13054 - Library Information Technology Systems 37.26\n" + " Administrator \n" + " 13058 - Library Technician 24.07\n" + " 13061 - Media Specialist I 25.31\n" + " 13062 - Media Specialist II 28.32\n" + " 13063 - Media Specialist III 31.55\n" + " 13071 - Photographer I 18.32\n" + " 13072 - Photographer II 20.79\n" + " 13073 - Photographer III 26.04\n" + " 13074 - Photographer IV 31.52\n" + " 13075 - Photographer V 37.14\n" + " 13090 - Technical Order Library Clerk 17.38\n" + " 13110 - Video Teleconference Technician 25.27\n" + "14000 - Information Technology Occupations\n" + " 14041 - Computer Operator I 18.92\n" + " 14042 - Computer Operator II 21.18\n" + " 14043 - Computer Operator III 23.60\n" + " 14044 - Computer Operator IV 26.22\n" + " 14045 - Computer Operator V 29.05\n" + " 14071 - Computer Programmer I (see 1) 26.36\n" + " 14072 - Computer Programmer II (see 1) \n" + " 14073 - Computer Programmer III (see 1) \n" + " 14074 - Computer Programmer IV (see 1) \n" + " 14101 - Computer Systems Analyst I (see 1) \n" + " 14102 - Computer Systems Analyst II (see 1) \n" + " 14103 - Computer Systems Analyst III (see 1) \n" + " 14150 - Peripheral Equipment Operator 18.92\n" + " 14160 - Personal Computer Support Technician 26.22\n" + " 14170 - System Support Specialist 35.84\n" + "15000 - Instructional Occupations\n" + " 15010 - Aircrew Training Devices Instructor (Non-Rated) 36.47\n" + " 15020 - Aircrew Training Devices Instructor (Rated) 44.06\n" + " 15030 - Air Crew Training Devices Instructor (Pilot) 52.81\n" + " 15050 - Computer Based Training Specialist / Instructor 36.47\n" + " 15060 - Educational Technologist 40.88\n" + " 15070 - Flight Instructor (Pilot) 52.81\n" + " 15080 - Graphic Artist 34.72\n" + " 15085 - Maintenance Test Pilot Fixed Jet/Prop 49.06\n" + " 15086 - Maintenance Test Pilot Rotary Wing 49.06\n" + " 15088 - Non-Maintenance Test/Co-Pilot 49.06\n" + " 15090 - Technical Instructor 30.12\n" + " 15095 - Technical Instructor/Course Developer 36.85\n" + " 15110 - Test Proctor 24.32\n" + " 15120 - Tutor 24.32\n" + "16000 - Laundry Dry-Cleaning Pressing And Related Occupations\n" + " 16010 - Assembler 15.58\n" + " 16030 - Counter Attendant 15.58\n" + " 16040 - Dry Cleaner 17.80\n" + " 16070 - Finisher Flatwork Machine 15.58\n" + " 16090 - Presser Hand 15.58\n" + " 16110 - Presser Machine Drycleaning 15.58\n" + " 16130 - Presser Machine Shirts 15.58\n" + " 16160 - Presser Machine Wearing Apparel Laundry 15.58\n" + " 16190 - Sewing Machine Operator 18.55\n" + " 16220 - Tailor 19.63\n" + " 16250 - Washer Machine 16.32\n" + "19000 - Machine Tool Operation And Repair Occupations\n" + " 19010 - Machine-Tool Operator (Tool Room) 27.63\n" + " 19040 - Tool And Die Maker 33.56\n" + "21000 - Materials Handling And Packing Occupations\n" + " 21020 - Forklift Operator 20.25\n" + " 21030 - Material Coordinator 26.18\n" + " 21040 - Material Expediter 26.18\n" + " 21050 - Material Handling Laborer 13.87\n" + " 21071 - Order Filler 16.60\n" + " 21080 - Production Line Worker (Food Processing) 20.25\n" + " 21110 - Shipping Packer 17.61\n" + " 21130 - Shipping/Receiving Clerk 17.61\n" + " 21140 - Store Worker I 15.10\n" + " 21150 - Stock Clerk 19.49\n" + " 21210 - Tools And Parts Attendant 20.25\n" + " 21410 - Warehouse Specialist 20.25\n" + "23000 - Mechanics And Maintenance And Repair Occupations\n" + " 23010 - Aerospace Structural Welder 39.04\n" + " 23019 - Aircraft Logs and Records Technician 29.01\n" + " 23021 - Aircraft Mechanic I 37.06\n" + " 23022 - Aircraft Mechanic II 39.04\n" + " 23023 - Aircraft Mechanic III 40.93\n" + " 23040 - Aircraft Mechanic Helper 25.67\n" + " 23050 - Aircraft Painter 35.20\n" + " 23060 - Aircraft Servicer 29.01\n" + " 23070 - Aircraft Survival Flight Equipment Technician 35.20\n" + " 23080 - Aircraft Worker 31.06\n" + " 23091 - Aircrew Life Support Equipment (ALSE) Mechanic 31.06\n" + " I \n" + " 23092 - Aircrew Life Support Equipment (ALSE) Mechanic 37.06\n" + " II \n" + " 23110 - Appliance Mechanic 23.90\n" + " 23120 - Bicycle Repairer 19.21\n" + " 23125 - Cable Splicer 34.63\n" + " 23130 - Carpenter Maintenance 24.67\n" + " 23140 - Carpet Layer 20.49\n" + " 23160 - Electrician Maintenance 29.53\n" + " 23181 - Electronics Technician Maintenance I 30.26\n" + " 23182 - Electronics Technician Maintenance II 32.13\n" + " 23183 - Electronics Technician Maintenance III 33.83\n" + " 23260 - Fabric Worker 24.29\n" + " 23290 - Fire Alarm System Mechanic 27.72\n" + " 23310 - Fire Extinguisher Repairer 22.38\n" + " 23311 - Fuel Distribution System Mechanic 32.33\n" + " 23312 - Fuel Distribution System Operator 23.95\n" + " 23370 - General Maintenance Worker 22.64\n" + " 23380 - Ground Support Equipment Mechanic 37.06\n" + " 23381 - Ground Support Equipment Servicer 29.01\n" + " 23382 - Ground Support Equipment Worker 31.06\n" + " 23391 - Gunsmith I 22.38\n" + " 23392 - Gunsmith II 26.02\n" + " 23393 - Gunsmith III 29.09\n" + " 23410 - Heating Ventilation And Air-Conditioning 28.96\n" + " Mechanic \n" + " 23411 - Heating Ventilation And Air Contidioning 30.50\n" + " Mechanic (Research Facility) \n" + " 23430 - Heavy Equipment Mechanic 27.60\n" + " 23440 - Heavy Equipment Operator 24.05\n" + " 23460 - Instrument Mechanic 26.99\n" + " 23465 - Laboratory/Shelter Mechanic 27.63\n" + " 23470 - Laborer 14.98\n" + " 23510 - Locksmith 26.50\n" + " 23530 - Machinery Maintenance Mechanic 29.39\n" + " 23550 - Machinist Maintenance 24.02\n" + " 23580 - Maintenance Trades Helper 18.27\n" + " 23591 - Metrology Technician I 26.99\n" + " 23592 - Metrology Technician II 28.43\n" + " 23593 - Metrology Technician III 29.82\n" + " 23640 - Millwright 28.19\n" + " 23710 - Office Appliance Repairer 22.96\n" + " 23760 - Painter Maintenance 21.75\n" + " 23790 - Pipefitter Maintenance 28.47\n" + " 23810 - Plumber Maintenance 27.04\n" + " 23820 - Pneudraulic Systems Mechanic 29.09\n" + " 23850 - Rigger 25.16\n" + " 23870 - Scale Mechanic 26.02\n" + " 23890 - Sheet-Metal Worker Maintenance 26.70\n" + " 23910 - Small Engine Mechanic 24.79\n" + " 23931 - Telecommunications Mechanic I 33.90\n" + " 23932 - Telecommunications Mechanic II 35.70\n" + " 23950 - Telephone Lineman 34.02\n" + " 23960 - Welder Combination Maintenance 23.30\n" + " 23965 - Well Driller 25.20\n" + " 23970 - Woodcraft Worker 29.09\n" + " 23980 - Woodworker 22.38\n" + "24000 - Personal Needs Occupations\n" + " 24550 - Case Manager 18.99\n" + " 24570 - Child Care Attendant 14.16\n" + " 24580 - Child Care Center Clerk 17.77\n" + " 24610 - Chore Aide 12.75\n" + " 24620 - Family Readiness And Support Services 18.99\n" + " Coordinator \n" + " 24630 - Homemaker 18.99\n" + "25000 - Plant And System Operations Occupations\n" + " 25010 - Boiler Tender 32.96\n" + " 25040 - Sewage Plant Operator 26.77\n" + " 25070 - Stationary Engineer 32.96\n" + " 25190 - Ventilation Equipment Tender 23.20\n" + " 25210 - Water Treatment Plant Operator 26.77\n" + "27000 - Protective Service Occupations\n" + " 27004 - Alarm Monitor 23.12\n" + " 27007 - Baggage Inspector 17.28\n" + " 27008 - Corrections Officer 28.24\n" + " 27010 - Court Security Officer 29.37\n" + " 27030 - Detection Dog Handler 20.57\n" + " 27040 - Detention Officer 28.24\n" + " 27070 - Firefighter 30.87\n" + " 27101 - Guard I 17.28\n" + " 27102 - Guard II 20.57\n" + " 27131 - Police Officer I 31.63\n" + " 27132 - Police Officer II 35.14\n" + "28000 - Recreation Occupations\n" + " 28041 - Carnival Equipment Operator 14.62\n" + " 28042 - Carnival Equipment Repairer 15.98\n" + " 28043 - Carnival Worker 10.80\n" + " 28210 - Gate Attendant/Gate Tender 13.92\n" + " 28310 - Lifeguard 11.59\n" + " 28350 - Park Attendant (Aide) 15.57\n" + " 28510 - Recreation Aide/Health Facility Attendant 11.37\n" + " 28515 - Recreation Specialist 19.29\n" + " 28630 - Sports Official 12.40\n" + " 28690 - Swimming Pool Operator 18.57\n" + "29000 - Stevedoring/Longshoremen Occupational Services\n" + " 29010 - Blocker And Bracer 33.54\n" + " 29020 - Hatch Tender 33.54\n" + " 29030 - Line Handler 33.54\n" + " 29041 - Stevedore I 31.31\n" + " 29042 - Stevedore II 35.62\n" + "30000 - Technical Occupations\n" + " 30010 - Air Traffic Control Specialist Center (HFO) (see 2) 44.89\n" + " 30011 - Air Traffic Control Specialist Station (HFO) (see 2) 30.95\n" + " 30012 - Air Traffic Control Specialist Terminal (HFO) (see 2) 34.08\n" + " 30021 - Archeological Technician I 20.86\n" + " 30022 - Archeological Technician II 23.34\n" + " 30023 - Archeological Technician III 28.90\n" + " 30030 - Cartographic Technician 28.90\n" + " 30040 - Civil Engineering Technician 29.89\n" + " 30051 - Cryogenic Technician I 32.01\n" + " 30052 - Cryogenic Technician II 35.36\n" + " 30061 - Drafter/CAD Operator I 20.86\n" + " 30062 - Drafter/CAD Operator II 23.34\n" + " 30063 - Drafter/CAD Operator III 26.01\n" + " 30064 - Drafter/CAD Operator IV 32.01\n" + " 30081 - Engineering Technician I 22.92\n" + " 30082 - Engineering Technician II 25.72\n" + " 30083 - Engineering Technician III 28.79\n" + " 30084 - Engineering Technician IV 35.64\n" + " 30085 - Engineering Technician V 43.61\n" + " 30086 - Engineering Technician VI 52.76\n" + " 30090 - Environmental Technician 28.90\n" + " 30095 - Evidence Control Specialist 28.90\n" + " 30210 - Laboratory Technician 25.72\n" + " 30221 - Latent Fingerprint Technician I 34.57\n" + " 30222 - Latent Fingerprint Technician II 38.18\n" + " 30240 - Mathematical Technician 28.94\n" + " 30361 - Paralegal/Legal Assistant I 21.36\n" + " 30362 - Paralegal/Legal Assistant II 26.47\n" + " 30363 - Paralegal/Legal Assistant III 32.36\n" + " 30364 - Paralegal/Legal Assistant IV 39.16\n" + " 30375 - Petroleum Supply Specialist 35.36\n" + " 30390 - Photo-Optics Technician 28.90\n" + " 30395 - Radiation Control Technician 35.36\n" + " 30461 - Technical Writer I 27.62\n" + " 30462 - Technical Writer II 33.80\n" + " 30463 - Technical Writer III 40.88\n" + " 30491 - Unexploded Ordnance (UXO) Technician I 28.53\n" + " 30492 - Unexploded Ordnance (UXO) Technician II 34.51\n" + " 30493 - Unexploded Ordnance (UXO) Technician III 41.37\n" + " 30494 - Unexploded (UXO) Safety Escort 28.53\n" + " 30495 - Unexploded (UXO) Sweep Personnel 28.53\n" + " 30501 - Weather Forecaster I 32.01\n" + " 30502 - Weather Forecaster II 38.93\n" + " 30620 - Weather Observer Combined Upper Air Or (see 2) 26.01\n" + " Surface Programs \n" + " 30621 - Weather Observer Senior (see 2) 28.90\n" + "31000 - Transportation/Mobile Equipment Operation Occupations\n" + " 31010 - Airplane Pilot 34.51\n" + " 31020 - Bus Aide 14.84\n" + " 31030 - Bus Driver 21.58\n" + " 31043 - Driver Courier 17.15\n" + " 31260 - Parking and Lot Attendant 13.22\n" + " 31290 - Shuttle Bus Driver 18.75\n" + " 31310 - Taxi Driver 16.10\n" + " 31361 - Truckdriver Light 18.75\n" + " 31362 - Truckdriver Medium 20.35\n" + " 31363 - Truckdriver Heavy 23.11\n" + " 31364 - Truckdriver Tractor-Trailer 23.11\n" + "99000 - Miscellaneous Occupations\n" + " 99020 - Cabin Safety Specialist 16.83\n" + " 99030 - Cashier 11.90\n" + " 99050 - Desk Clerk 14.00\n" + " 99095 - Embalmer 31.73\n" + " 99130 - Flight Follower 28.53\n" + " 99251 - Laboratory Animal Caretaker I 14.02\n" + " 99252 - Laboratory Animal Caretaker II 15.32\n" + " 99260 - Marketing Analyst 35.17\n" + " 99310 - Mortician 31.73\n" + " 99410 - Pest Controller 20.07\n" + " 99510 - Photofinishing Worker 17.83\n" + " 99710 - Recycling Laborer 22.98\n" + " 99711 - Recycling Specialist 28.16\n" + " 99730 - Refuse Collector 20.81\n" + " 99810 - Sales Clerk 12.74\n" + " 99820 - School Crossing Guard 15.12\n" + " 99830 - Survey Party Chief 28.46\n" + " 99831 - Surveying Aide 17.69\n" + " 99832 - Surveying Technician 27.06\n" + " 99840 - Vending Machine Attendant 14.43\n" + " 99841 - Vending Machine Repairer 18.73\n" + " 99842 - Vending Machine Repairer Helper 14.43\n\n\n\n\n\n\n\n\n" + "____________________________________________________________________________________\n\n" + "Note: Executive Order (EO) 13706 Establishing Paid Sick Leave for Federal \n" + "Contractors applies to all contracts subject to the Service Contract Act for which \n" + "the contract is awarded (and any solicitation was issued) on or after January 1 \n" + "2017. If this contract is covered by the EO the contractor must provide employees \n" + "with 1 hour of paid sick leave for every 30 hours they work up to 56 hours of paid \n" + "sick leave each year. Employees must be permitted to use paid sick leave for their \n" + "own illness injury or other health-related needs including preventive care; to \n" + "assist a family member (or person who is like family to the employee) who is ill \n" + "injured or has other health-related needs including preventive care; or for \n" + "reasons resulting from or to assist a family member (or person who is like family \n" + "to the employee) who is the victim of domestic violence sexual assault or \n" + "stalking. Additional information on contractor requirements and worker protections \n" + "under the EO is available at www.dol.gov/whd/govcontracts.\n\n\n\n" + "ALL OCCUPATIONS LISTED ABOVE RECEIVE THE FOLLOWING BENEFITS: \n\n\n\n" + "HEALTH & WELFARE: $4.54 per hour up to 40 hours per week or $181.60 per week or \n" + "$786.93 per month\n\n" + " \n\n" + "HEALTH & WELFARE EO 13706: $4.22 per hour up to 40 hours per week or $168.80 per \n" + "week or $731.47 per month*\n\n" + " \n\n" + "*This rate is to be used only when compensating employees for performance on an SCA-\n" + "covered contract also covered by EO 13706 Establishing Paid Sick Leave for Federal \n" + "Contractors. A contractor may not receive credit toward its SCA obligations for any \n" + "paid sick leave provided pursuant to EO 13706.\n\n\n\n" + "VACATION: 2 weeks paid vacation after 1 year of service with a contractor or \n" + "successor 3 weeks after 5 years and 4 weeks after 15 years. Length of service \n" + "includes the whole span of continuous service with the present contractor or \n" + "successor wherever employed and with the predecessor contractors in the \n" + "performance of similar work at the same Federal facility. (Reg. 29 CFR 4.173)\n\n\n\n" + "HOLIDAYS: A minimum of ten paid holidays per year: New Year's Day Martin Luther \n" + "King Jr.'s Birthday Washington's Birthday Memorial Day Independence Day \n" + "Labor Day Columbus Day Veterans' Day Thanksgiving Day and Christmas Day. (A \n" + "contractor may substitute for any of the named holidays another day off with pay in \n" + "accordance with a plan communicated to the employees involved.) (See 29 CFR 4.174)\n\n\n\n\n\n\n\n" + "THE OCCUPATIONS WHICH HAVE NUMBERED FOOTNOTES IN PARENTHESES RECEIVE THE FOLLOWING:\n\n\n\n" + "1) COMPUTER EMPLOYEES: Under the SCA at section 8(b) this wage determination does \n" + "not apply to any employee who individually qualifies as a bona fide executive \n" + "administrative or professional employee as defined in 29 C.F.R. Part 541. Because \n" + "most Computer System Analysts and Computer Programmers who are compensated at a rate \n" + "not less than $27.63 (or on a salary or fee basis at a rate not less than $455 per \n" + "week) an hour would likely qualify as exempt computer professionals (29 C.F.R. 541.\n" + "400) wage rates may not be listed on this wage determination for all occupations \n" + "within those job families. In addition because this wage determination may not \n" + "list a wage rate for some or all occupations within those job families if the survey \n" + "data indicates that the prevailing wage rate for the occupation equals or exceeds \n" + "$27.63 per hour conformances may be necessary for certain nonexempt employees. For \n" + "example if an individual employee is nonexempt but nevertheless performs duties \n" + "within the scope of one of the Computer Systems Analyst or Computer Programmer \n" + "occupations for which this wage determination does not specify an SCA wage rate \n" + "then the wage rate for that employee must be conformed in accordance with the \n" + "conformance procedures described in the conformance note included on this wage \n" + "determination.\n\n\n\n" + "Additionally because job titles vary widely and change quickly in the computer \n" + "industry job titles are not determinative of the application of the computer \n" + "professional exemption. Therefore the exemption applies only to computer employees \n" + "who satisfy the compensation requirements and whose primary duty consists of:\n\n" + " (1) The application of systems analysis techniques and procedures including \n" + "consulting with users to determine hardware software or system functional \n" + "specifications;\n\n" + " (2) The design development documentation analysis creation testing or \n" + "modification of computer systems or programs including prototypes based on and \n" + "related to user or system design specifications;\n\n" + " (3) The design documentation testing creation or modification of computer \n" + "programs related to machine operating systems; or\n\n" + " (4) A combination of the aforementioned duties the performance of which \n" + "requires the same level of skills. (29 C.F.R. 541.400).\n\n\n\n" + "2) AIR TRAFFIC CONTROLLERS AND WEATHER OBSERVERS - NIGHT PAY & SUNDAY PAY: If you \n" + "work at night as part of a regular tour of duty you will earn a night differential \n" + "and receive an additional 10% of basic pay for any hours worked between 6pm and 6am. \n" + " If you are a full-time employed (40 hours a week) and Sunday is part of your \n" + "regularly scheduled workweek you are paid at your rate of basic pay plus a Sunday \n" + "premium of 25% of your basic rate for each hour of Sunday work which is not overtime \n" + "(i.e. occasional work on Sunday outside the normal tour of duty is considered \n" + "overtime work).\n\n\n\n\n\n" + "** HAZARDOUS PAY DIFFERENTIAL **\n\n\n\n" + "An 8 percent differential is applicable to employees employed in a position that \n" + "represents a high degree of hazard when working with or in close proximity to \n" + "ordnance explosives and incendiary materials. This includes work such as \n" + "screening blending dying mixing and pressing of sensitive ordnance explosives \n" + "and pyrotechnic compositions such as lead azide black powder and photoflash powder. \n" + " All dry-house activities involving propellants or explosives. Demilitarization \n" + "modification renovation demolition and maintenance operations on sensitive \n" + "ordnance explosives and incendiary materials. All operations involving re-grading \n" + "and cleaning of artillery ranges.\n\n\n\n" + "A 4 percent differential is applicable to employees employed in a position that \n" + "represents a low degree of hazard when working with or in close proximity to \n" + "ordnance (or employees possibly adjacent to) explosives and incendiary materials \n" + "which involves potential injury such as laceration of hands face or arms of the \n" + "employee engaged in the operation irritation of the skin minor burns and the like; \n" + "minimal damage to immediate or adjacent work area or equipment being used. All \n" + "operations involving unloading storage and hauling of ordnance explosive and \n" + "incendiary ordnance material other than small arms ammunition. These differentials \n" + "are only applicable to work that has been specifically designated by the agency for \n" + "ordnance explosives and incendiary material differential pay.\n\n\n\n" + "** UNIFORM ALLOWANCE **\n\n\n\n" + "If employees are required to wear uniforms in the performance of this contract \n" + "(either by the terms of the Government contract by the employer by the state or \n" + "local law etc.) the cost of furnishing such uniforms and maintaining (by \n" + "laundering or dry cleaning) such uniforms is an expense that may not be borne by an \n" + "employee where such cost reduces the hourly rate below that required by the wage \n" + "determination. The Department of Labor will accept payment in accordance with the \n" + "following standards as compliance:\n\n\n\n" + "The contractor or subcontractor is required to furnish all employees with an \n" + "adequate number of uniforms without cost or to reimburse employees for the actual \n" + "cost of the uniforms. In addition where uniform cleaning and maintenance is made \n" + "the responsibility of the employee all contractors and subcontractors subject to \n" + "this wage determination shall (in the absence of a bona fide collective bargaining \n" + "agreement providing for a different amount or the furnishing of contrary \n" + "affirmative proof as to the actual cost) reimburse all employees for such cleaning \n" + "and maintenance at a rate of $3.35 per week (or $.67 cents per day). However in \n" + "those instances where the uniforms furnished are made of \"\"wash and wear\"\" \n" + "materials may be routinely washed and dried with other personal garments and do \n" + "not require any special treatment such as dry cleaning daily washing or commercial \n" + "laundering in order to meet the cleanliness or appearance standards set by the terms \n" + "of the Government contract by the contractor by law or by the nature of the work \n" + "there is no requirement that employees be reimbursed for uniform maintenance costs.\n\n\n\n" + "** SERVICE CONTRACT ACT DIRECTORY OF OCCUPATIONS **\n\n\n\n" + "The duties of employees under job titles listed are those described in the \n" + "\"\"Service Contract Act Directory of Occupations\"\" Fifth Edition (Revision 1) \n" + "dated September 2015 unless otherwise indicated.\n\n" + " \n\n" + "** REQUEST FOR AUTHORIZATION OF ADDITIONAL CLASSIFICATION AND WAGE RATE Standard \n" + "Form 1444 (SF-1444) **\n\n\n\n" + "Conformance Process:\n\n\n\n" + "The contracting officer shall require that any class of service employee which is \n" + "not listed herein and which is to be employed under the contract (i.e. the work to \n" + "be performed is not performed by any classification listed in the wage \n" + "determination) be classified by the contractor so as to provide a reasonable \n" + "relationship (i.e. appropriate level of skill comparison) between such unlisted \n" + "classifications and the classifications listed in the wage determination (See 29 CFR \n" + "4.6(b)(2)(i)). Such conforming procedures shall be initiated by the contractor \n" + "prior to the performance of contract work by such unlisted class(es) of employees \n" + "(See 29 CFR 4.6(b)(2)(ii)). The Wage and Hour Division shall make a final \n" + "determination of conformed classification wage rate and/or fringe benefits which \n" + "shall be paid to all employees performing in the classification from the first day \n" + "of work on which contract work is performed by them in the classification. Failure \n" + "to pay such unlisted employees the compensation agreed upon by the interested \n" + "parties and/or fully determined by the Wage and Hour Division retroactive to the \n" + "date such class of employees commenced contract work shall be a violation of the Act \n" + "and this contract. (See 29 CFR 4.6(b)(2)(v)). When multiple wage determinations are \n" + "included in a contract a separate SF-1444 should be prepared for each wage \n" + "determination to which a class(es) is to be conformed.\n\n\n\n" + "The process for preparing a conformance request is as follows:\n\n\n\n" + "1) When preparing the bid the contractor identifies the need for a conformed \n" + "occupation(s) and computes a proposed rate(s).\n\n\n\n" + "2) After contract award the contractor prepares a written report listing in order \n" + "the proposed classification title(s) a Federal grade equivalency (FGE) for each \n" + "proposed classification(s) job description(s) and rationale for proposed wage \n" + "rate(s) including information regarding the agreement or disagreement of the \n" + "authorized representative of the employees involved or where there is no authorized \n" + "representative the employees themselves. This report should be submitted to the \n" + "contracting officer no later than 30 days after such unlisted class(es) of employees \n" + "performs any contract work.\n\n\n\n" + "3) The contracting officer reviews the proposed action and promptly submits a report \n" + "of the action together with the agency's recommendations and pertinent \n" + "information including the position of the contractor and the employees to the U.S. \n" + "Department of Labor Wage and Hour Division for review (See 29 CFR 4.6(b)(2)(ii)).\n\n\n\n" + "4) Within 30 days of receipt the Wage and Hour Division approves modifies or \n" + "disapproves the action via transmittal to the agency contracting officer or \n" + "notifies the contracting officer that additional time will be required to process \n" + "the request.\n\n\n\n" + "5) The contracting officer transmits the Wage and Hour Division's decision to the \n" + "contractor.\n\n\n\n" + "6) Each affected employee shall be furnished by the contractor with a written copy \n" + "of such determination or it shall be posted as a part of the wage determination (See \n" + "29 CFR 4.6(b)(2)(iii)).\n\n\n\n" + "Information required by the Regulations must be submitted on SF-1444 or bond paper.\n\n\n\n" + "When preparing a conformance request the \"\"Service Contract Act Directory of \n" + "Occupations\"\" should be used to compare job definitions to ensure that duties \n" + "requested are not performed by a classification already listed in the wage \n" + "determination. Remember it is not the job title but the required tasks that \n" + "determine whether a class is included in an established wage determination. \n" + "Conformances may not be used to artificially split combine or subdivide \n" + "classifications listed in the wage determination (See 29 CFR 4.152(c)(1)).\"\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