/

HTML / CSS / JavaScript Tutorial

JavaScript regular expressions: g modifier

[this page | pdf | back links]

A JavaScript regular expression takes the form: /pattern/modifiers

 

The g modifier indicates that JavaScript should do a global match (i.e. find all matches rather than just first one).

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Regular Expressions


Desktop view | Switch to Mobile