"

39 Regex testing

Regex instructions document

Regex (regular expression): /(^|\s)(\d{1,3},*){4,}/ 

Should match

  • For appliance(s) with draft control the area of the air supply shall be at least 1 in.2 for every 7000 Btu’s of input up to and including 1000000 Btu’s, plus 1 in.2 for every 14000 Btu’s in excess of 1000000 Btu’s. For metric calculations use; 310 mm2 for every kW up to and including 293 kW plus 155 mm2 for every kW in excess of 293 kW).
  • 1000

1,000 then match 8,000,000

  1. 1000
    1. 38,866

Should NOT match

1

98

346

  1. 21
  2. 09
  • 236
  • src=”https://pressbooks.bccampus.ca/hfriedman/wp-content/uploads/sites/998/2023/11/image32-300×225.jpeg”

/1000/24,000/24589

License

Icon for the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License

Harper Book Title Copyright © by hfriedman is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, except where otherwise noted.

Share This Book