Regular Expression Global Property The Regular Expression Global property is a

Regular expression global property the regular

This preview shows page 197 - 200 out of 334 pages.

Regular Expression Global Property The Regular Expression Global property is a read-only property that indicates the value of the global attribute of an instance of the regular expression object. The value it returns depends on the attribute:
Image of page 197
Siebel eScript Language Reference Version 8.1, Rev. A Methods Reference Regular Expression Methods 198 The value g is an attribute of the regular expression. It returns the following value: True The value g is not an attribute of the regular expression. It returns the following value: False Format regexp .global Example The following example uses the regular expression global property: // Create RegExp instance with global attribute. var pat = /^Begin/g; //or var pat = new RegExp("^Begin", "g"); //Then pat.global == true. Regular Expression Ignore Case Property The Regular Expression Ignore Case property is a read-only property that indicates the value of the ignoreCase attribute of an instance of the regular expression object. The value it returns depends on the attribute: The value i is an attribute of the regular expression. It returns the following value: True The value i is not an attribute of the regular expression. It returns the following value: False Format regexp .ignoreCase Example The following example uses the Regular Expression Ignore Case property: // Create RegExp instance with ignoreCase attribute. var pat = /^Begin/i; //or var pat = new RegExp("^Begin", "i"); //Then pat.ignoreCase == true.
Image of page 198
Methods Reference Regular Expression Methods Siebel eScript Language Reference Version 8.1, Rev. A 199 Regular Expression Multiline Property The Regular Expression Multiline property is a read-only property that indicates the value of the multiline attribute of an instance of the regular expression object. It determines if Siebel CRM performs a pattern search in multiline mode. The value it returns depends on the attribute: The value m is an attribute of the regular expression. It returns the following value: True The value m is not an attribute of the regular expression. It returns the following value: False Format regexp .multiline Example The following example uses the Regular Expression Multiline property: // Create RegExp instance with multiline attribute. var pat = /^Begin/m; //or var pat = new RegExp("^Begin", "m"); //Then pat.multiline == true. Regular Expression Source Property The Regular Expression Source property is a read-only property that stores the regular expression that Siebel CRM uses to find matches in a string, not including the attributes. Format regexp .source Example The following example uses the Regular Expression Source property: var pat = /t.o/g; // Then pat.source == "t.o" Compile Regular Expressions Method The Compile Regular Expressions method changes the pattern and attributes for the current instance of a regular expression object. It allows you to use a regular expression instance multiple times with changes to the characteristics of this instance. You use it with a regular expression that the constructor function creates. You do not use this method with the literal notation.
Image of page 199
Image of page 200

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes