UltraEdit regular expressions
23rd March 2003
Every now and then I find myself needing to use a regular expression in UltraEdit, and whenever I do I invariably have to spend five minutes re-reading that section of the manual to remind myself how its syntax differs from more traditional regular expressions. This time, I’m recording the result in the hope that it might jog my memory next time I need to use them.
The task completed by this regular expression is to turn a file containing numbers like this:
1st 2nd 3rd ...
In to this:
<option value="1">1st</option> <option value="2">2nd</option> <option value="3">3rd</option>
Find: %^([0-9]+^)^(?+^)$
and Replace with: <option value="^1">^1^2</option>
More recent articles
- Qwen2.5-Coder-32B is an LLM that can code well that runs on my Mac - 12th November 2024
- Visualizing local election results with Datasette, Observable and MapLibre GL - 9th November 2024
- Project: VERDAD - tracking misinformation in radio broadcasts using Gemini 1.5 - 7th November 2024