Regular expressions are a declarative language, mainly used for pattern matching within strings. Please include a tag specifying the programming language you are using, together with this tag.
1
vote
1answer
251 views
Extension Method for Creating Types from Regular Expression Match Groups
I've been doing some parsing with regular expression named capture groups and decided it might make sense to write an extension to handle this.
The code below will create an instance of a specified ...
2
votes
0answers
238 views
Processing XML configuration which stores regular expressions and format strings for a documentation tool
I'm investigating some feature for the ScalaDoc tool, which would allow library writers to link to documentation created by third party tools like JavaDoc.
My idea is to have some (XML) configuration ...
1
vote
0answers
448 views
C preprocessor regular expression
I parse preprocessor conditions using the regular expressions. First all, I match all preprocessor directives with the regex
@"# *(?<Directive>if|elif|ifdef|ifndef) .*"
I do not need else, ...
0
votes
0answers
48 views
Python pattern searching using re standard lib, str.find()
I'm trying to improve some code in order to get a better perfomance, I have to do a lot of pattern matching for little tags on medium large strings, for example:
import re
STR = ...