100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Unit 5- Regular expressions $8.59   Add to cart

Class notes

Unit 5- Regular expressions

 8 views  0 purchase
  • Course
  • Institution

Providing well written notes of javascript programming language of unit 5.i.e Regular expressions.

Preview 4 out of 57  pages

  • February 1, 2023
  • 57
  • 2021/2022
  • Class notes
  • Mr.p.s.chavan
  • Diploma 3rd year 5th semester
avatar-seller
Chapter 5
Regular Expression, Rollover and Frames

,What is Regular Expression?
• A regular expression is very similar to a mathematical
expression, except a regular expression tells the browser how
to manipulate text rather than numbers by using special
symbols as operators.

• A regular expression is a sequence of characters that forms a
search pattern.
• When you search for data in a text, you can use this search
pattern to describe what you are searching for.
• A regular expression can be a single character, or a more
complicated pattern.
• Regular expressions can be used to perform all types of text
search and text replace operation

,Syntax:
• A regular expression could be defined with the RegExp
() constructor, as follows −

• var pattern = new RegExp(pattern, attributes);
or simply
• var pattern = /pattern/attributes;
Where
• pattern − A string that specifies the pattern of the
regular expression or another regular expression.
• attributes − An optional string containing any of the
"g", "i", and "m" attributes that specify global, case-
insensitive, and multi-line matches, respectively.

, Reg. Exp. Cont. :
Ex:
• var patt = /kkwp/i;
/kkwp/i is a regular expression.

• kkwp is a pattern (to be used in a search).

• i is a attribute (modifies the search to be case-
insensitive).

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller suyashbharate27. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $8.59. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

77333 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$8.59
  • (0)
  Add to cart