Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

prevOpen Source→regex-is-jspnext

regex-is-jsp4.2.0

Regular expression for detecting JSP (Java Server Pages) code

Downloads per monthChangelogMIT Licenselibera manifesto
  • the top
  • Installation
  • Quick Take
  • Examples
  • API — ISJSP()
  • API — VERSION
  • Changelog

Installation

Quick Take

Examples

  • Detect a JSP page directive
  • Detect a JSP action tag
  • Detect an expression that refers to a JSP property
  • Reject HTML without JSP syntax
  • Detect a JSP Standard Tag Library tag

API — isJSP()

The main function isJSP() is imported like this:

It’s a function which returns a RegExp object, /.../g, which you can use everywhere, for example, in RegExp.prototype.exec() or String.prototype.match().

API — version

You can import version:

Changelog

Open Changelog
↑ back to top
prev next

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab