This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solved, with some help from StackOverflow that I apparently missed the first time around | |
(http://stackoverflow.com/questions/2013124/regex-matching-up-to-the-first-occurrence-of-a-character): | |
/<simpleChoice[^>]*>/ | |
Match "<simpleChoice" plus any and all characters that do not match ">" followed by a ">". | |
[^>]* is a set of "zero or more characters that do not match >" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest> | |
<organization> | |
<item identifier="ITEM-6137565f-18fe-481f-b6ce-a290a354c862" isvisible="true"> | |
<title>Math</title> | |
<item identifier="ITEM-5781bd41-7acd-4373-8ccd-37bd074c2461"> | |
<title>Grade 07</title> | |
<item identifier="ITEM-d7035880-88a5-4501-9865-f6265ba8022c" identifierref="i-179211"> | |
<title>qti_200535.xml</title> | |
</item> | |
<item identifier="ITEM-b13ebebd-f942-4ee8-a342-e8c3913c9063" identifierref="i-194469"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<li> | |
Level 1 Item 1 | |
<ul> | |
<li> | |
Level 1-1 Item 1 | |
<ul> | |
<li> | |
Level 1-1-1 Item 1 | |
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on terrbear's "html2haml an entire directory" at http://terrbear.org/?p=277 | |
# This script needs to be executable and located somewhere in your PATH | |
CMD=`basename $0` | |
if [ -z "$1" ]; then | |
wdir="." | |
else | |
wdir=$1 |
NewerOlder