Add custom regular expressions to the validation list of available expressions

Add custom regular expressions to the validation list of available expressions

Post by Jay Dougla » Sun, 17 Aug 2003 08:25:55


Hello.
I would like to add my own regular expressions to the list of available
expression used in the Visual Studio IDE. I've searched high and low
through configuration files and on the web and have not had any luck. Any
input is appreciated.

Thanks,
Jay Douglas
 
 
 

1. Error 3220 - Function Is Not Available In Expression In Table Level Validation Expression

2. regular expressions in javascript (was regular expressions in java)

Your Subject line doesn't seem to have any relationship to your problem, so
I've changed it.




Inside a string \s is simply another way to write s. If you want a
backslash in a string you must escape it.

Why are you using strings to create your regular expression at all? Why are
you trying to allow for spaces at a point where they aren't allowed?

var reg = /(<a class=l [^>]*href=")([^"]+)("[^>]*>)/;

should get you a bit further.

Final question, do you really need regular expressions here at all? You are
making a lot of assumptions about exactly how the element has been written:
no quotes round the class attribute, double quotes round the href
attribute, class appears before href. If you parse the responseText into an
HTML DOM then you can just use getElementsByTagName('a') and then pick out
the ones with the right class. In other words, if you want to process HTML
you might be better loading it into an iframe rather than using
XMLHTTPRequest, or if you have control over what you are retrieving send
back XML instead of HTML.

3. [FAQ] Regular expressions: How-to use foreign characters (Was Regular expressions: problems with swedish characters)

4. Parsing (X)HTML with regular expressions, or not (was: Help with a regular expression)

5. C++ regular expression Vs. Perl regular Expression

6. Regular expression to match regular expressions?

7. Regular expression from end of another regular expression till end of line

8. Regular expression from end of another regular expression till end of line

9. add standard expressions into "Regular expression editor"??

10. How to print all expressions that match a regular expression

11. code for converting regular math expression into scheme s-expression

12. Seek xpath expression where an attribute name is a regular expression

13. How to express a math expression in a single regular expression?

14. Matching abitrary expression in a regular expression

15. Regular Expressions to Split Lists Into Sub-Lists