Jamie Ly

Jamie Ly

Developer, student, person

Skip to content
  • Arts/Crafts
  • Programs
  • Writings
  • About

regular expressions

There are 7 posts tagged regular expressions.

Regex Challenge

A friend asked for a regex that matches a paragraph that contains only upper-case text inside a nested hierarchy of tags. Some examples: Matches: Fail: I came up with the following expression: It doesn’t handle tags interspersed with text or nested paragraph tags. Here’s a sample on Rubular.

in Troubleshooting | 212 Words

Word Jumble Game: Part 5

I used jQuery for the UI. I am a recent convert to jQuery, having mostly used Prototype + Scriptaculous. The word list is embedded into the page script as a javascript array. On document ready, html is generated, which writes the first and last word to the page, and creates blank input boxes for the […]

in Software | 129 Words

Word Jumble Game: Part 4

Search The problem of generating the chain of clues is a simple search problem. In this case, depth-first search was used, because the algorithm would attempt path depth-wise and only explore another branch if the generated chain was not long enough. Another tactic would have been to use a breadth first search. To use breadth-first […]

in Software | 311 Words

Word Jumble Game: Part 3

The first thing I did was made sure that the word list would be cached on application start. This was as simple as creating an Application.cfc cfcomponent and implementing the onApplicationStart function.  This function reads the dictionary in (described in the last entry) and caches the word list in a ColdFusion array. There are other […]

in Software | 283 Words

Word Jumble Game: Part 2

In my last entry, I described the concept behind the Word Jumble game. In this entry, I will describe initial steps in creating the game. Firstly, I needed some dictionary of words. The Unix flavors have built-in dictionaries, and I develop on OSX, so I Googled the location of its dictionary: I knew I wanted […]

in Software | 199 Words

Tech Talk: Regular Expression Recap

Yesterday I presented a tech talk on regular expressions. Overall, the feedback was very helpful! One thing I need to work on is making sure that my examples are work 100%. I know it can be very confusing when someone stumbles through an example. Another thing which I need to work on is pacing. Unfortunately, […]

in Programming | 203 Words

Outlook Rules VBA, to Bypass Exchange’s Rule Limit

Custom Outlook Rules VBA to Bypass Exchange’s 32K rule limit. Add entries to the array returned by Jam_GetRules to add more rules. The first element of each array is a comma-delimited list of properties to check To, From, and/or Subject. The second element is a regular expression supported by Microsoft’s VBScript RegEx class. The third […]

in Programming | 719 Words

Archives

Independent Publisher empowered by WordPress