Results 1 to 4 of 4

Thread: What is Regexp count

  1. #1
    Join Date
    Feb 2009
    Posts
    71

    What is Regexp count

    I have received an .CSV file when i opened that file there were i found the regexp.count statements available, what is it? and what does it do? I have come across this statement 2 to 3 times earlier and that's increases my curiosity to more about this statement please let me know thanks for your opinion in Advance.

  2. #2
    Join Date
    Oct 2008
    Posts
    116

    Re: What is Regexp count

    The regular expression is case sensitive. Set the IgnoreCase property to True to make it case insensitive. REGEX.COUNT(Text,Regular expression,Case sensitive). The caret and dollar only match at the very start and very end of the subject string by default. Typically, when you desire to create an absolute path, you want to resolve them by deleting them and the level of directory above them.

  3. #3
    Join Date
    Feb 2008
    Posts
    137

    Re: What is Regexp count

    REGEX.COUNT counts the matches of a regular expression in a string. If the regex could not match the subject string at all, MatchCollection.Count will be zero. The function return number of words in a string. It use the function RemoveExtraSpaces and use regular expression to remove HTML Code , New Lines and Dividers. If there is a syntax error in the regular expression, REGEX.COUNT returns #VALUE! If the text or the regular expression contains more than 255 characters, the function returns #VALUE!

  4. #4
    Join Date
    Feb 2008
    Posts
    180

    Re: What is Regexp count

    I would still suggest using line by line, stream-based, reading, and also re-using a single Regex instance (ideally precompiled). If the RegExp.Global property is False (the default), MatchCollection will contain only the first match. If RegExp.Global is true, Matches> will contain all matches. If RegExp.Global is true, Replace will return the subject string with all regex matches replaced.

Similar Threads

  1. Regexp - Unable to remove the end character
    By TechGate in forum Software Development
    Replies: 5
    Last Post: 16-02-2010, 05:09 AM
  2. Extracting an element forming part of a variable in a regexp
    By Gadhadhar in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 09:20 AM
  3. Extracting string (RegExp)
    By Aaliya Seth in forum Software Development
    Replies: 5
    Last Post: 03-02-2010, 03:44 AM
  4. What is RegExp Modifiers in JavaScript?
    By Flaco in forum Software Development
    Replies: 4
    Last Post: 30-01-2010, 06:10 PM
  5. JavaScript: RegExp and Boolean Object
    By Ivann in forum Software Development
    Replies: 5
    Last Post: 18-12-2009, 03:36 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,873,287.84308 seconds with 17 queries