source: main/adopters/nm/trunk/src/main/webapps/nmibis-content/xml/query/module/cancer/zRegex.txt @ 21149

Last change on this file since 21149 was 21149, checked in by LoisHaggard_NM, 7 months ago

nmibis-content Fixed "Mother's County of Residence" in query geo dimensions

File size: 1.3 KB
Line 
1https://www.princeton.edu/~mlovett/reference/Regular-Expressions
2https://regexone.com/lesson/kleene_operators
3https://www.freecodecamp.org/news/simple-regex-tricks-for-beginners-3acb3fa257cb/
4
5
6<MEASURES>[\w\W]*?</MEASURES>
7
8Finds a string that begins with <MEASURES>, and is followed by any number (*) of alphanumeric (\w) or non-alphanumeric (\W) characters, and find the next instance (?) of </MEASURES> (as opposed to the last instance in the file).
9
10replace with:
11
12<MEASURE_NAME>RateAA100K</MEASURE_NAME>\n\t\t\t<DATASET_ANCILLARY_VALUES>\n\t\t\t\t<DATASET_ANCILLARY_VALUE>\n\t\t\t\t\t<ANCILLARY_VALUE_NAME>LowerConfidenceLimit</ANCILLARY_VALUE_NAME>\n\t\t\t\t</DATASET_ANCILLARY_VALUE>\n\t\t\t\t<DATASET_ANCILLARY_VALUE>\n\t\t\t\t\t<ANCILLARY_VALUE_NAME>UpperConfidenceLimit</ANCILLARY_VALUE_NAME>\n\t\t\t\t</DATASET_ANCILLARY_VALUE>\n\t\t\t\t<DATASET_ANCILLARY_VALUE>\n\t\t\t\t\t<ANCILLARY_VALUE_NAME>Numerator</ANCILLARY_VALUE_NAME>\n\t\t\t\t\t<ANCILLARY_VALUE_LABEL>Number of Cases</ANCILLARY_VALUE_LABEL>\n\t\t\t\t</DATASET_ANCILLARY_VALUE>\n\t\t\t\t<DATASET_ANCILLARY_VALUE>\n\t\t\t\t\t<ANCILLARY_VALUE_NAME>Denominator</ANCILLARY_VALUE_NAME>\n\t\t\t\t</DATASET_ANCILLARY_VALUE>\n\t\t\t</DATASET_ANCILLARY_VALUES>
13
14
15<TITLE>Mother's[\w]*?of Residence</TITLE>
Note: See TracBrowser for help on using the repository browser.