Snippets tagged string matching

  • F# yet another Interop example

    Quick demo of using F# to interop with a native C library. C Library has not been checked for algorithm correctness (but works exactly as the origional).

    13 people like this

    Posted: 11 years ago by David Klein

  • Test string is all UpperCase 2

    There is another "All Uppercase" snippet that does two searches - one to verify that there's at least one upper case letter and one to make sure there are no lowercase letters. "---D" is "uppercase" but "---" is not. I wanted to duplicate that behavior even though it seems a bit questionable, but do it in one regex search. The underappreciated lookahead features of RegEx allow this sort of thing - scanning forward and then rescanning forward so I use that here

    1 people like this

    Posted: 5 years ago by Darrell Plank

  • Parse and replace string with templating characters

    Starts at a given position. Using any kind of "tag" like <%replaceThis%> with something corresponding from the Map.

    0 people like this

    Posted: 1 year ago by shazmodan