
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!
|
|