Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 06-08-2009
Member
 
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.
Reply With Quote
  #2  
Old 06-08-2009
Member
 
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.
Reply With Quote
  #3  
Old 06-08-2009
Member
 
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!
Reply With Quote
  #4  
Old 06-08-2009
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 12:48 AM.