RegEx object - Pattern Matching 
Author Message
 RegEx object - Pattern Matching

You don't have to do anything. The pattern, as written, already allows
apostrophes. What the pattern does is exclude certain characters or
combinations of those characters from starting a string. The excluded
characters are in order: ? * / " | : < > = + ; , .\ ) ( # [ ] & and ^.
The pattern is actually a bit questionable, as there's no need to escape
the left parenthesis within the bracket, nor is the last slash
neccessary. Just in case you actually wanted to add the apostrophe to
the list of characters to be excluded, then insert it after the question
mark.


| I am working on MS Commerce Server 2000 and ran into their use of
pattern
| matching using RegEx.
|
| I don't have that much experience with regular expressions, and was
hoping
| someone could help me decipher the following:
|
| dictFld.Pattern = "^[^?*/""|:<>=+;,.\\\)(#[\]&^/]*"
|
| I am trying to get the pattern to allow apostrophes "'", but am unsure
where to
| place it.
|
| Any help would be greatly appreciated!
|
|



Sat, 27 Sep 2003 02:48:44 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. RegEx: Pattern Matching going wrong: "\[.+\]\"

2. Filename pattern matching using regex

3. RegExp object, matches collection, and sub-patterns

4. RegEx Question: No stingy matching?

5. regex question on multiple word matches

6. REGEX, groups and matching

7. match [ (Regex)

8. Regular expressions and/or pattern matching in VBA?

9. Pattern matching in VBA

10. searching items and pattern matching

11. Pattern matching in VBA

12. Pattern-matching query

 

 
Powered by phpBB® Forum Software