Regular Expressions 101

Save & Share

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression

/
/
g

Test String

Substitution

Processing...

Code Generator

Generated Code

#include <MsgBoxConstants.au3> ; to declare the Constants of MsgBox Local $sRegex = ".*value="(.*)".*" Local $sString = " <option value="">Select your Timezone</option>" & @CRLF & _ " <option value="Africa/Abidjan">Africa/Abidjan</option>" & @CRLF & _ " <option value="Africa/Accra">Africa/Accra</option>" & @CRLF & _ " <option value="Africa/Addis_Ababa">Africa/Addis_Ababa</option>" & @CRLF & _ " <option value="Africa/Algiers">Africa/Algiers</option>" & @CRLF & _ " <option value="Africa/Asmara">Africa/Asmara</option>" & @CRLF & _ " <option value="Africa/Bamako">Africa/Bamako</option>" & @CRLF & _ " <option value="Africa/Bangui">Africa/Bangui</option>" & @CRLF & _ " <option value="Africa/Banjul">Africa/Banjul</option>" & @CRLF & _ " <option value="Africa/Bissau">Africa/Bissau</option>" & @CRLF & _ " <option value="Africa/Blantyre">Africa/Blantyre</option>" & @CRLF & _ " <option value="Africa/Brazzaville">Africa/Brazzaville</option>" & @CRLF & _ " <option value="Africa/Bujumbura">Africa/Bujumbura</option>" & @CRLF & _ " <option value="Africa/Cairo">Africa/Cairo</option>" & @CRLF & _ " <option value="Africa/Casablanca">Africa/Casablanca</option>" & @CRLF & _ " <option value="Africa/Ceuta">Africa/Ceuta</option>" & @CRLF & _ " <option value="Africa/Conakry">Africa/Conakry</option>" & @CRLF & _ " <option value="Africa/Dakar">Africa/Dakar</option>" & @CRLF & _ " <option value="Africa/Dar_es_Salaam">Africa/Dar_es_Salaam</option>" & @CRLF & _ " <option value="Africa/Djibouti">Africa/Djibouti</option>" & @CRLF & _ " <option value="Africa/Douala">Africa/Douala</option>" & @CRLF & _ " <option value="Africa/El_Aaiun">Africa/El_Aaiun</option>" & @CRLF & _ " <option value="Africa/Freetown">Africa/Freetown</option>" & @CRLF & _ " <option value="Africa/Gaborone">Africa/Gaborone</option>" & @CRLF & _ " <option value="Africa/Harare">Africa/Harare</option>" & @CRLF & _ " <option value="Africa/Johannesburg">Africa/Johannesburg</option>" & @CRLF & _ " <option value="Africa/Juba">Africa/Juba</option>" & @CRLF & _ " <option value="Africa/Kampala">Africa/Kampala</option>" & @CRLF & _ " <option value="Africa/Khartoum">Africa/Khartoum</option>" & @CRLF & _ " <option value="Africa/Kigali">Africa/Kigali</option>" & @CRLF & _ " <option value="Africa/Kinshasa">Africa/Kinshasa</option>" & @CRLF & _ " <option value="Africa/Lagos">Africa/Lagos</option>" & @CRLF & _ " <option value="Africa/Libreville">Africa/Libreville</option>" & @CRLF & _ " <option value="Africa/Lome">Africa/Lome</option>" & @CRLF & _ " <option value="Africa/Luanda">Africa/Luanda</option>" & @CRLF & _ " <option value="Africa/Lubumbashi">Africa/Lubumbashi</option>" & @CRLF & _ " <option value="Africa/Lusaka">Africa/Lusaka</option>" & @CRLF & _ " <option value="Africa/Malabo">Africa/Malabo</option>" & @CRLF & _ " <option value="Africa/Maputo">Africa/Maputo</option>" & @CRLF & _ " <option value="Africa/Maseru">Africa/Maseru</option>" & @CRLF & _ " <option value="Africa/Mbabane">Africa/Mbabane</option>" & @CRLF & _ " <option value="Africa/Mogadishu">Africa/Mogadishu</option>" & @CRLF & _ " <option value="Africa/Monrovia">Africa/Monrovia</option>" & @CRLF & _ " <option value="Africa/Nairobi">Africa/Nairobi</option>" & @CRLF & _ " <option value="Africa/Ndjamena">Africa/Ndjamena</option>" & @CRLF & _ " <option value="Africa/Niamey">Africa/Niamey</option>" & @CRLF & _ " <option value="Africa/Nouakchott">Africa/Nouakchott</option>" & @CRLF & _ " <option value="Africa/Ouagadougou">Africa/Ouagadougou</option>" & @CRLF & _ " <option value="Africa/Porto-Novo">Africa/Porto-Novo</option>" & @CRLF & _ " <option value="Africa/Sao_Tome">Africa/Sao_Tome</option>" & @CRLF & _ " <option value="Africa/Tripoli">Africa/Tripoli</option>" & @CRLF & _ " <option value="Africa/Tunis">Africa/Tunis</option>" & @CRLF & _ " <option value="Africa/Windhoek">Africa/Windhoek</option>" & @CRLF & _ " <option value="America/Adak">America/Adak</option>" & @CRLF & _ " <option value="America/Anchorage">America/Anchorage</option>" & @CRLF & _ " <option value="America/Anguilla">America/Anguilla</option>" & @CRLF & _ " <option value="America/Antigua">America/Antigua</option>" & @CRLF & _ " <option value="America/Araguaina">America/Araguaina</option>" & @CRLF & _ " <option value="America/Argentina/Buenos_Aires">America/Argentina/Buenos_Aires</option>" & @CRLF & _ " <option value="America/Argentina/Catamarca">America/Argentina/Catamarca</option>" & @CRLF & _ " <option value="America/Argentina/Cordoba">America/Argentina/Cordoba</option>" & @CRLF & _ " <option value="America/Argentina/Jujuy">America/Argentina/Jujuy</option>" & @CRLF & _ " <option value="America/Argentina/La_Rioja">America/Argentina/La_Rioja</option>" & @CRLF & _ " <option value="America/Argentina/Mendoza">America/Argentina/Mendoza</option>" & @CRLF & _ " <option value="America/Argentina/Rio_Gallegos">America/Argentina/Rio_Gallegos</option>" & @CRLF & _ " <option value="America/Argentina/Salta">America/Argentina/Salta</option>" & @CRLF & _ " <option value="America/Argentina/San_Juan">America/Argentina/San_Juan</option>" & @CRLF & _ " <option value="America/Argentina/San_Luis">America/Argentina/San_Luis</option>" & @CRLF & _ " <option value="America/Argentina/Tucuman">America/Argentina/Tucuman</option>" & @CRLF & _ " <option value="America/Argentina/Ushuaia">America/Argentina/Ushuaia</option>" & @CRLF & _ " <option value="America/Aruba">America/Aruba</option>" & @CRLF & _ " <option value="America/Asuncion">America/Asuncion</option>" & @CRLF & _ " <option value="America/Atikokan">America/Atikokan</option>" & @CRLF & _ " <option value="America/Bahia">America/Bahia</option>" & @CRLF & _ " <option value="America/Bahia_Banderas">America/Bahia_Banderas</option>" & @CRLF & _ " <option value="America/Barbados">America/Barbados</option>" & @CRLF & _ " <option value="America/Belem">America/Belem</option>" & @CRLF & _ " <option value="America/Belize">America/Belize</option>" & @CRLF & _ " <option value="America/Blanc-Sablon">America/Blanc-Sablon</option>" & @CRLF & _ " <option value="America/Boa_Vista">America/Boa_Vista</option>" & @CRLF & _ " <option value="America/Bogota">America/Bogota</option>" & @CRLF & _ " <option value="America/Boise">America/Boise</option>" & @CRLF & _ " <option value="America/Cambridge_Bay">America/Cambridge_Bay</option>" & @CRLF & _ " <option value="America/Campo_Grande">America/Campo_Grande</option>" & @CRLF & _ " <option value="America/Cancun">America/Cancun</option>" & @CRLF & _ " <option value="America/Caracas">America/Caracas</option>" & @CRLF & _ " <option value="America/Cayenne">America/Cayenne</option>" & @CRLF & _ " <option value="America/Cayman">America/Cayman</option>" & @CRLF & _ " <option value="America/Chicago">America/Chicago</option>" & @CRLF & _ " <option value="America/Chihuahua">America/Chihuahua</option>" & @CRLF & _ " <option value="America/Costa_Rica">America/Costa_Rica</option>" & @CRLF & _ " <option value="America/Creston">America/Creston</option>" & @CRLF & _ " <option value="America/Cuiaba">America/Cuiaba</option>" & @CRLF & _ " <option value="America/Curacao">America/Curacao</option>" & @CRLF & _ " <option value="America/Danmarkshavn">America/Danmarkshavn</option>" & @CRLF & _ " <option value="America/Dawson">America/Dawson</option>" & @CRLF & _ " <option value="America/Dawson_Creek">America/Dawson_Creek</option>" & @CRLF & _ " <option value="America/Denver">America/Denver</option>" & @CRLF & _ " <option value="America/Detroit">America/Detroit</option>" & @CRLF & _ " <option value="America/Dominica">America/Dominica</option>" & @CRLF & _ " <option value="America/Edmonton">America/Edmonton</option>" & @CRLF & _ " <option value="America/Eirunepe">America/Eirunepe</option>" & @CRLF & _ " <option value="America/El_Salvador">America/El_Salvador</option>" & @CRLF & _ " <option value="America/Fort_Nelson">America/Fort_Nelson</option>" & @CRLF & _ " <option value="America/Fortaleza">America/Fortaleza</option>" & @CRLF & _ " <option value="America/Glace_Bay">America/Glace_Bay</option>" & @CRLF & _ " <option value="America/Godthab">America/Godthab</option>" & @CRLF & _ " <option value="America/Goose_Bay">America/Goose_Bay</option>" & @CRLF & _ " <option value="America/Grand_Turk">America/Grand_Turk</option>" & @CRLF & _ " <option value="America/Grenada">America/Grenada</option>" & @CRLF & _ " <option value="America/Guadeloupe">America/Guadeloupe</option>" & @CRLF & _ " <option value="America/Guatemala">America/Guatemala</option>" & @CRLF & _ " <option value="America/Guayaquil">America/Guayaquil</option>" & @CRLF & _ " <option value="America/Guyana">America/Guyana</option>" & @CRLF & _ " <option value="America/Halifax">America/Halifax</option>" & @CRLF & _ " <option value="America/Havana">America/Havana</option>" & @CRLF & _ " <option value="America/Hermosillo">America/Hermosillo</option>" & @CRLF & _ " <option value="America/Indiana/Indianapolis">America/Indiana/Indianapolis</option>" & @CRLF & _ " <option value="America/Indiana/Knox">America/Indiana/Knox</option>" & @CRLF & _ " <option value="America/Indiana/Marengo">America/Indiana/Marengo</option>" & @CRLF & _ " <option value="America/Indiana/Petersburg">America/Indiana/Petersburg</option>" & @CRLF & _ " <option value="America/Indiana/Tell_City">America/Indiana/Tell_City</option>" & @CRLF & _ " <option value="America/Indiana/Vevay">America/Indiana/Vevay</option>" & @CRLF & _ " <option value="America/Indiana/Vincennes">America/Indiana/Vincennes</option>" & @CRLF & _ " <option value="America/Indiana/Winamac">America/Indiana/Winamac</option>" & @CRLF & _ " <option value="America/Inuvik">America/Inuvik</option>" & @CRLF & _ " <option value="America/Iqaluit">America/Iqaluit</option>" & @CRLF & _ " <option value="America/Jamaica">America/Jamaica</option>" & @CRLF & _ " <option value="America/Juneau">America/Juneau</option>" & @CRLF & _ " <option value="America/Kentucky/Louisville">America/Kentucky/Louisville</option>" & @CRLF & _ " <option value="America/Kentucky/Monticello">America/Kentucky/Monticello</option>" & @CRLF & _ " <option value="America/Kralendijk">America/Kralendijk</option>" & @CRLF & _ " <option value="America/La_Paz">America/La_Paz</option>" & @CRLF & _ " <option value="America/Lima">America/Lima</option>" & @CRLF & _ " <option value="America/Los_Angeles">America/Los_Angeles</option>" & @CRLF & _ " <option value="America/Lower_Princes">America/Lower_Princes</option>" & @CRLF & _ " <option value="America/Maceio">America/Maceio</option>" & @CRLF & _ " <option value="America/Managua">America/Managua</option>" & @CRLF & _ " <option value="America/Manaus">America/Manaus</option>" & @CRLF & _ " <option value="America/Marigot">America/Marigot</option>" & @CRLF & _ " <option value="America/Martinique">America/Martinique</option>" & @CRLF & _ " <option value="America/Matamoros">America/Matamoros</option>" & @CRLF & _ " <option value="America/Mazatlan">America/Mazatlan</option>" & @CRLF & _ " <option value="America/Menominee">America/Menominee</option>" & @CRLF & _ " <option value="America/Merida">America/Merida</option>" & @CRLF & _ " <option value="America/Metlakatla">America/Metlakatla</option>" & @CRLF & _ " <option value="America/Mexico_City">America/Mexico_City</option>" & @CRLF & _ " <option value="America/Miquelon">America/Miquelon</option>" & @CRLF & _ " <option value="America/Moncton">America/Moncton</option>" & @CRLF & _ " <option value="America/Monterrey">America/Monterrey</option>" & @CRLF & _ " <option value="America/Montevideo">America/Montevideo</option>" & @CRLF & _ " <option value="America/Montserrat">America/Montserrat</option>" & @CRLF & _ " <option value="America/Nassau">America/Nassau</option>" & @CRLF & _ " <option value="America/New_York">America/New_York</option>" & @CRLF & _ " <option value="America/Nipigon">America/Nipigon</option>" & @CRLF & _ " <option value="America/Nome">America/Nome</option>" & @CRLF & _ " <option value="America/Noronha">America/Noronha</option>" & @CRLF & _ " <option value="America/North_Dakota/Beulah">America/North_Dakota/Beulah</option>" & @CRLF & _ " <option value="America/North_Dakota/Center">America/North_Dakota/Center</option>" & @CRLF & _ " <option value="America/North_Dakota/New_Salem">America/North_Dakota/New_Salem</option>" & @CRLF & _ " <option value="America/Ojinaga">America/Ojinaga</option>" & @CRLF & _ " <option value="America/Panama">America/Panama</option>" & @CRLF & _ " <option value="America/Pangnirtung">America/Pangnirtung</option>" & @CRLF & _ " <option value="America/Paramaribo">America/Paramaribo</option>" & @CRLF & _ " <option value="America/Phoenix">America/Phoenix</option>" & @CRLF & _ " <option value="America/Port-au-Prince">America/Port-au-Prince</option>" & @CRLF & _ " <option value="America/Port_of_Spain">America/Port_of_Spain</option>" & @CRLF & _ " <option value="America/Porto_Velho">America/Porto_Velho</option>" & @CRLF & _ " <option value="America/Puerto_Rico">America/Puerto_Rico</option>" & @CRLF & _ " <option value="America/Rainy_River">America/Rainy_River</option>" & @CRLF & _ " <option value="America/Rankin_Inlet">America/Rankin_Inlet</option>" & @CRLF & _ " <option value="America/Recife">America/Recife</option>" & @CRLF & _ " <option value="America/Regina">America/Regina</option>" & @CRLF & _ " <option value="America/Resolute">America/Resolute</option>" & @CRLF & _ " <option value="America/Rio_Branco">America/Rio_Branco</option>" & @CRLF & _ " <option value="America/Santarem">America/Santarem</option>" & @CRLF & _ " <option value="America/Santiago">America/Santiago</option>" & @CRLF & _ " <option value="America/Santo_Domingo">America/Santo_Domingo</option>" & @CRLF & _ " <option value="America/Sao_Paulo">America/Sao_Paulo</option>" & @CRLF & _ " <option value="America/Scoresbysund">America/Scoresbysund</option>" & @CRLF & _ " <option value="America/Sitka">America/Sitka</option>" & @CRLF & _ " <option value="America/St_Barthelemy">America/St_Barthelemy</option>" & @CRLF & _ " <option value="America/St_Johns">America/St_Johns</option>" & @CRLF & _ " <option value="America/St_Kitts">America/St_Kitts</option>" & @CRLF & _ " <option value="America/St_Lucia">America/St_Lucia</option>" & @CRLF & _ " <option value="America/St_Thomas">America/St_Thomas</option>" & @CRLF & _ " <option value="America/St_Vincent">America/St_Vincent</option>" & @CRLF & _ " <option value="America/Swift_Current">America/Swift_Current</option>" & @CRLF & _ " <option value="America/Tegucigalpa">America/Tegucigalpa</option>" & @CRLF & _ " <option value="America/Thule">America/Thule</option>" & @CRLF & _ " <option value="America/Thunder_Bay">America/Thunder_Bay</option>" & @CRLF & _ " <option value="America/Tijuana">America/Tijuana</option>" & @CRLF & _ " <option value="America/Toronto">America/Toronto</option>" & @CRLF & _ " <option value="America/Tortola">America/Tortola</option>" & @CRLF & _ " <option value="America/Vancouver">America/Vancouver</option>" & @CRLF & _ " <option value="America/Whitehorse">America/Whitehorse</option>" & @CRLF & _ " <option value="America/Winnipeg">America/Winnipeg</option>" & @CRLF & _ " <option value="America/Yakutat">America/Yakutat</option>" & @CRLF & _ " <option value="America/Yellowknife">America/Yellowknife</option>" & @CRLF & _ " <option value="Antarctica/Casey">Antarctica/Casey</option>" & @CRLF & _ " <option value="Antarctica/Davis">Antarctica/Davis</option>" & @CRLF & _ " <option value="Antarctica/DumontDUrville">Antarctica/DumontDUrville</option>" & @CRLF & _ " <option value="Antarctica/Macquarie">Antarctica/Macquarie</option>" & @CRLF & _ " <option value="Antarctica/Mawson">Antarctica/Mawson</option>" & @CRLF & _ " <option value="Antarctica/McMurdo">Antarctica/McMurdo</option>" & @CRLF & _ " <option value="Antarctica/Palmer">Antarctica/Palmer</option>" & @CRLF & _ " <option value="Antarctica/Rothera">Antarctica/Rothera</option>" & @CRLF & _ " <option value="Antarctica/Syowa">Antarctica/Syowa</option>" & @CRLF & _ " <option value="Antarctica/Troll">Antarctica/Troll</option>" & @CRLF & _ " <option value="Antarctica/Vostok">Antarctica/Vostok</option>" & @CRLF & _ " <option value="Arctic/Longyearbyen">Arctic/Longyearbyen</option>" & @CRLF & _ " <option value="Asia/Aden">Asia/Aden</option>" & @CRLF & _ " <option value="Asia/Almaty">Asia/Almaty</option>" & @CRLF & _ " <option value="Asia/Amman">Asia/Amman</option>" & @CRLF & _ " <option value="Asia/Anadyr">Asia/Anadyr</option>" & @CRLF & _ " <option value="Asia/Aqtau">Asia/Aqtau</option>" & @CRLF & _ " <option value="Asia/Aqtobe">Asia/Aqtobe</option>" & @CRLF & _ " <option value="Asia/Ashgabat">Asia/Ashgabat</option>" & @CRLF & _ " <option value="Asia/Baghdad">Asia/Baghdad</option>" & @CRLF & _ " <option value="Asia/Bahrain">Asia/Bahrain</option>" & @CRLF & _ " <option value="Asia/Baku">Asia/Baku</option>" & @CRLF & _ " <option value="Asia/Bangkok">Asia/Bangkok</option>" & @CRLF & _ " <option value="Asia/Barnaul">Asia/Barnaul</option>" & @CRLF & _ " <option value="Asia/Beirut">Asia/Beirut</option>" & @CRLF & _ " <option value="Asia/Bishkek">Asia/Bishkek</option>" & @CRLF & _ " <option value="Asia/Brunei">Asia/Brunei</option>" & @CRLF & _ " <option value="Asia/Chita">Asia/Chita</option>" & @CRLF & _ " <option value="Asia/Choibalsan">Asia/Choibalsan</option>" & @CRLF & _ " <option value="Asia/Colombo">Asia/Colombo</option>" & @CRLF & _ " <option value="Asia/Damascus">Asia/Damascus</option>" & @CRLF & _ " <option value="Asia/Dhaka">Asia/Dhaka</option>" & @CRLF & _ " <option value="Asia/Dili">Asia/Dili</option>" & @CRLF & _ " <option value="Asia/Dubai">Asia/Dubai</option>" & @CRLF & _ " <option value="Asia/Dushanbe">Asia/Dushanbe</option>" & @CRLF & _ " <option value="Asia/Gaza">Asia/Gaza</option>" & @CRLF & _ " <option value="Asia/Hebron">Asia/Hebron</option>" & @CRLF & _ " <option value="Asia/Ho_Chi_Minh">Asia/Ho_Chi_Minh</option>" & @CRLF & _ " <option value="Asia/Hong_Kong">Asia/Hong_Kong</option>" & @CRLF & _ " <option value="Asia/Hovd">Asia/Hovd</option>" & @CRLF & _ " <option value="Asia/Irkutsk">Asia/Irkutsk</option>" & @CRLF & _ " <option value="Asia/Jakarta">Asia/Jakarta</option>" & @CRLF & _ " <option value="Asia/Jayapura">Asia/Jayapura</option>" & @CRLF & _ " <option value="Asia/Jerusalem">Asia/Jerusalem</option>" & @CRLF & _ " <option value="Asia/Kabul">Asia/Kabul</option>" & @CRLF & _ " <option value="Asia/Kamchatka">Asia/Kamchatka</option>" & @CRLF & _ " <option value="Asia/Karachi">Asia/Karachi</option>" & @CRLF & _ " <option value="Asia/Kathmandu">Asia/Kathmandu</option>" & @CRLF & _ " <option value="Asia/Khandyga">Asia/Khandyga</option>" & @CRLF & _ " <option value="Asia/Kolkata">Asia/Kolkata</option>" & @CRLF & _ " <option value="Asia/Krasnoyarsk">Asia/Krasnoyarsk</option>" & @CRLF & _ " <option value="Asia/Kuala_Lumpur">Asia/Kuala_Lumpur</option>" & @CRLF & _ " <option value="Asia/Kuching">Asia/Kuching</option>" & @CRLF & _ " <option value="Asia/Kuwait">Asia/Kuwait</option>" & @CRLF & _ " <option value="Asia/Macau">Asia/Macau</option>" & @CRLF & _ " <option value="Asia/Magadan">Asia/Magadan</option>" & @CRLF & _ " <option value="Asia/Makassar">Asia/Makassar</option>" & @CRLF & _ " <option value="Asia/Manila">Asia/Manila</option>" & @CRLF & _ " <option value="Asia/Muscat">Asia/Muscat</option>" & @CRLF & _ " <option value="Asia/Nicosia">Asia/Nicosia</option>" & @CRLF & _ " <option value="Asia/Novokuznetsk">Asia/Novokuznetsk</option>" & @CRLF & _ " <option value="Asia/Novosibirsk">Asia/Novosibirsk</option>" & @CRLF & _ " <option value="Asia/Omsk">Asia/Omsk</option>" & @CRLF & _ " <option value="Asia/Oral">Asia/Oral</option>" & @CRLF & _ " <option value="Asia/Phnom_Penh">Asia/Phnom_Penh</option>" & @CRLF & _ " <option value="Asia/Pontianak">Asia/Pontianak</option>" & @CRLF & _ " <option value="Asia/Pyongyang">Asia/Pyongyang</option>" & @CRLF & _ " <option value="Asia/Qatar">Asia/Qatar</option>" & @CRLF & _ " <option value="Asia/Qyzylorda">Asia/Qyzylorda</option>" & @CRLF & _ " <option value="Asia/Rangoon">Asia/Rangoon</option>" & @CRLF & _ " <option value="Asia/Riyadh">Asia/Riyadh</option>" & @CRLF & _ " <option value="Asia/Sakhalin">Asia/Sakhalin</option>" & @CRLF & _ " <option value="Asia/Samarkand">Asia/Samarkand</option>" & @CRLF & _ " <option value="Asia/Seoul">Asia/Seoul</option>" & @CRLF & _ " <option value="Asia/Shanghai">Asia/Shanghai</option>" & @CRLF & _ " <option value="Asia/Singapore">Asia/Singapore</option>" & @CRLF & _ " <option value="Asia/Srednekolymsk">Asia/Srednekolymsk</option>" & @CRLF & _ " <option value="Asia/Taipei">Asia/Taipei</option>" & @CRLF & _ " <option value="Asia/Tashkent">Asia/Tashkent</option>" & @CRLF & _ " <option value="Asia/Tbilisi">Asia/Tbilisi</option>" & @CRLF & _ " <option value="Asia/Tehran">Asia/Tehran</option>" & @CRLF & _ " <option value="Asia/Thimphu">Asia/Thimphu</option>" & @CRLF & _ " <option value="Asia/Tokyo">Asia/Tokyo</option>" & @CRLF & _ " <option value="Asia/Tomsk">Asia/Tomsk</option>" & @CRLF & _ " <option value="Asia/Ulaanbaatar">Asia/Ulaanbaatar</option>" & @CRLF & _ " <option value="Asia/Urumqi">Asia/Urumqi</option>" & @CRLF & _ " <option value="Asia/Ust-Nera">Asia/Ust-Nera</option>" & @CRLF & _ " <option value="Asia/Vientiane">Asia/Vientiane</option>" & @CRLF & _ " <option value="Asia/Vladivostok">Asia/Vladivostok</option>" & @CRLF & _ " <option value="Asia/Yakutsk">Asia/Yakutsk</option>" & @CRLF & _ " <option value="Asia/Yekaterinburg">Asia/Yekaterinburg</option>" & @CRLF & _ " <option value="Asia/Yerevan">Asia/Yerevan</option>" & @CRLF & _ " <option value="Atlantic/Azores">Atlantic/Azores</option>" & @CRLF & _ " <option value="Atlantic/Bermuda">Atlantic/Bermuda</option>" & @CRLF & _ " <option value="Atlantic/Canary">Atlantic/Canary</option>" & @CRLF & _ " <option value="Atlantic/Cape_Verde">Atlantic/Cape_Verde</option>" & @CRLF & _ " <option value="Atlantic/Faroe">Atlantic/Faroe</option>" & @CRLF & _ " <option value="Atlantic/Madeira">Atlantic/Madeira</option>" & @CRLF & _ " <option value="Atlantic/Reykjavik">Atlantic/Reykjavik</option>" & @CRLF & _ " <option value="Atlantic/South_Georgia">Atlantic/South_Georgia</option>" & @CRLF & _ " <option value="Atlantic/St_Helena">Atlantic/St_Helena</option>" & @CRLF & _ " <option value="Atlantic/Stanley">Atlantic/Stanley</option>" & @CRLF & _ " <option value="Australia/Adelaide">Australia/Adelaide</option>" & @CRLF & _ " <option value="Australia/Brisbane">Australia/Brisbane</option>" & @CRLF & _ " <option value="Australia/Broken_Hill">Australia/Broken_Hill</option>" & @CRLF & _ " <option value="Australia/Currie">Australia/Currie</option>" & @CRLF & _ " <option value="Australia/Darwin">Australia/Darwin</option>" & @CRLF & _ " <option value="Australia/Eucla">Australia/Eucla</option>" & @CRLF & _ " <option value="Australia/Hobart">Australia/Hobart</option>" & @CRLF & _ " <option value="Australia/Lindeman">Australia/Lindeman</option>" & @CRLF & _ " <option value="Australia/Lord_Howe">Australia/Lord_Howe</option>" & @CRLF & _ " <option value="Australia/Melbourne">Australia/Melbourne</option>" & @CRLF & _ " <option value="Australia/Perth">Australia/Perth</option>" & @CRLF & _ " <option value="Australia/Sydney" selected="selected">Australia/Sydney</option>" & @CRLF & _ " <option value="Europe/Amsterdam">Europe/Amsterdam</option>" & @CRLF & _ " <option value="Europe/Andorra">Europe/Andorra</option>" & @CRLF & _ " <option value="Europe/Astrakhan">Europe/Astrakhan</option>" & @CRLF & _ " <option value="Europe/Athens">Europe/Athens</option>" & @CRLF & _ " <option value="Europe/Belgrade">Europe/Belgrade</option>" & @CRLF & _ " <option value="Europe/Berlin">Europe/Berlin</option>" & @CRLF & _ " <option value="Europe/Bratislava">Europe/Bratislava</option>" & @CRLF & _ " <option value="Europe/Brussels">Europe/Brussels</option>" & @CRLF & _ " <option value="Europe/Bucharest">Europe/Bucharest</option>" & @CRLF & _ " <option value="Europe/Budapest">Europe/Budapest</option>" & @CRLF & _ " <option value="Europe/Busingen">Europe/Busingen</option>" & @CRLF & _ " <option value="Europe/Chisinau">Europe/Chisinau</option>" & @CRLF & _ " <option value="Europe/Copenhagen">Europe/Copenhagen</option>" & @CRLF & _ " <option value="Europe/Dublin">Europe/Dublin</option>" & @CRLF & _ " <option value="Europe/Gibraltar">Europe/Gibraltar</option>" & @CRLF & _ " <option value="Europe/Guernsey">Europe/Guernsey</option>" & @CRLF & _ " <option value="Europe/Helsinki">Europe/Helsinki</option>" & @CRLF & _ " <option value="Europe/Isle_of_Man">Europe/Isle_of_Man</option>" & @CRLF & _ " <option value="Europe/Istanbul">Europe/Istanbul</option>" & @CRLF & _ " <option value="Europe/Jersey">Europe/Jersey</option>" & @CRLF & _ " <option value="Europe/Kaliningrad">Europe/Kaliningrad</option>" & @CRLF & _ " <option value="Europe/Kiev">Europe/Kiev</option>" & @CRLF & _ " <option value="Europe/Kirov">Europe/Kirov</option>" & @CRLF & _ " <option value="Europe/Lisbon">Europe/Lisbon</option>" & @CRLF & _ " <option value="Europe/Ljubljana">Europe/Ljubljana</option>" & @CRLF & _ " <option value="Europe/London">Europe/London</option>" & @CRLF & _ " <option value="Europe/Luxembourg">Europe/Luxembourg</option>" & @CRLF & _ " <option value="Europe/Madrid">Europe/Madrid</option>" & @CRLF & _ " <option value="Europe/Malta">Europe/Malta</option>" & @CRLF & _ " <option value="Europe/Mariehamn">Europe/Mariehamn</option>" & @CRLF & _ " <option value="Europe/Minsk">Europe/Minsk</option>" & @CRLF & _ " <option value="Europe/Monaco">Europe/Monaco</option>" & @CRLF & _ " <option value="Europe/Moscow">Europe/Moscow</option>" & @CRLF & _ " <option value="Europe/Oslo">Europe/Oslo</option>" & @CRLF & _ " <option value="Europe/Paris">Europe/Paris</option>" & @CRLF & _ " <option value="Europe/Podgorica">Europe/Podgorica</option>" & @CRLF & _ " <option value="Europe/Prague">Europe/Prague</option>" & @CRLF & _ " <option value="Europe/Riga">Europe/Riga</option>" & @CRLF & _ " <option value="Europe/Rome">Europe/Rome</option>" & @CRLF & _ " <option value="Europe/Samara">Europe/Samara</option>" & @CRLF & _ " <option value="Europe/San_Marino">Europe/San_Marino</option>" & @CRLF & _ " <option value="Europe/Sarajevo">Europe/Sarajevo</option>" & @CRLF & _ " <option value="Europe/Simferopol">Europe/Simferopol</option>" & @CRLF & _ " <option value="Europe/Skopje">Europe/Skopje</option>" & @CRLF & _ " <option value="Europe/Sofia">Europe/Sofia</option>" & @CRLF & _ " <option value="Europe/Stockholm">Europe/Stockholm</option>" & @CRLF & _ " <option value="Europe/Tallinn">Europe/Tallinn</option>" & @CRLF & _ " <option value="Europe/Tirane">Europe/Tirane</option>" & @CRLF & _ " <option value="Europe/Ulyanovsk">Europe/Ulyanovsk</option>" & @CRLF & _ " <option value="Europe/Uzhgorod">Europe/Uzhgorod</option>" & @CRLF & _ " <option value="Europe/Vaduz">Europe/Vaduz</option>" & @CRLF & _ " <option value="Europe/Vatican">Europe/Vatican</option>" & @CRLF & _ " <option value="Europe/Vienna">Europe/Vienna</option>" & @CRLF & _ " <option value="Europe/Vilnius">Europe/Vilnius</option>" & @CRLF & _ " <option value="Europe/Volgograd">Europe/Volgograd</option>" & @CRLF & _ " <option value="Europe/Warsaw">Europe/Warsaw</option>" & @CRLF & _ " <option value="Europe/Zagreb">Europe/Zagreb</option>" & @CRLF & _ " <option value="Europe/Zaporozhye">Europe/Zaporozhye</option>" & @CRLF & _ " <option value="Europe/Zurich">Europe/Zurich</option>" & @CRLF & _ " <option value="Indian/Antananarivo">Indian/Antananarivo</option>" & @CRLF & _ " <option value="Indian/Chagos">Indian/Chagos</option>" & @CRLF & _ " <option value="Indian/Christmas">Indian/Christmas</option>" & @CRLF & _ " <option value="Indian/Cocos">Indian/Cocos</option>" & @CRLF & _ " <option value="Indian/Comoro">Indian/Comoro</option>" & @CRLF & _ " <option value="Indian/Kerguelen">Indian/Kerguelen</option>" & @CRLF & _ " <option value="Indian/Mahe">Indian/Mahe</option>" & @CRLF & _ " <option value="Indian/Maldives">Indian/Maldives</option>" & @CRLF & _ " <option value="Indian/Mauritius">Indian/Mauritius</option>" & @CRLF & _ " <option value="Indian/Mayotte">Indian/Mayotte</option>" & @CRLF & _ " <option value="Indian/Reunion">Indian/Reunion</option>" & @CRLF & _ " <option value="Pacific/Apia">Pacific/Apia</option>" & @CRLF & _ " <option value="Pacific/Auckland">Pacific/Auckland</option>" & @CRLF & _ " <option value="Pacific/Bougainville">Pacific/Bougainville</option>" & @CRLF & _ " <option value="Pacific/Chatham">Pacific/Chatham</option>" & @CRLF & _ " <option value="Pacific/Chuuk">Pacific/Chuuk</option>" & @CRLF & _ " <option value="Pacific/Easter">Pacific/Easter</option>" & @CRLF & _ " <option value="Pacific/Efate">Pacific/Efate</option>" & @CRLF & _ " <option value="Pacific/Enderbury">Pacific/Enderbury</option>" & @CRLF & _ " <option value="Pacific/Fakaofo">Pacific/Fakaofo</option>" & @CRLF & _ " <option value="Pacific/Fiji">Pacific/Fiji</option>" & @CRLF & _ " <option value="Pacific/Funafuti">Pacific/Funafuti</option>" & @CRLF & _ " <option value="Pacific/Galapagos">Pacific/Galapagos</option>" & @CRLF & _ " <option value="Pacific/Gambier">Pacific/Gambier</option>" & @CRLF & _ " <option value="Pacific/Guadalcanal">Pacific/Guadalcanal</option>" & @CRLF & _ " <option value="Pacific/Guam">Pacific/Guam</option>" & @CRLF & _ " <option value="Pacific/Honolulu">Pacific/Honolulu</option>" & @CRLF & _ " <option value="Pacific/Johnston">Pacific/Johnston</option>" & @CRLF & _ " <option value="Pacific/Kiritimati">Pacific/Kiritimati</option>" & @CRLF & _ " <option value="Pacific/Kosrae">Pacific/Kosrae</option>" & @CRLF & _ " <option value="Pacific/Kwajalein">Pacific/Kwajalein</option>" & @CRLF & _ " <option value="Pacific/Majuro">Pacific/Majuro</option>" & @CRLF & _ " <option value="Pacific/Marquesas">Pacific/Marquesas</option>" & @CRLF & _ " <option value="Pacific/Midway">Pacific/Midway</option>" & @CRLF & _ " <option value="Pacific/Nauru">Pacific/Nauru</option>" & @CRLF & _ " <option value="Pacific/Niue">Pacific/Niue</option>" & @CRLF & _ " <option value="Pacific/Norfolk">Pacific/Norfolk</option>" & @CRLF & _ " <option value="Pacific/Noumea">Pacific/Noumea</option>" & @CRLF & _ " <option value="Pacific/Pago_Pago">Pacific/Pago_Pago</option>" & @CRLF & _ " <option value="Pacific/Palau">Pacific/Palau</option>" & @CRLF & _ " <option value="Pacific/Pitcairn">Pacific/Pitcairn</option>" & @CRLF & _ " <option value="Pacific/Pohnpei">Pacific/Pohnpei</option>" & @CRLF & _ " <option value="Pacific/Port_Moresby">Pacific/Port_Moresby</option>" & @CRLF & _ " <option value="Pacific/Rarotonga">Pacific/Rarotonga</option>" & @CRLF & _ " <option value="Pacific/Saipan">Pacific/Saipan</option>" & @CRLF & _ " <option value="Pacific/Tahiti">Pacific/Tahiti</option>" & @CRLF & _ " <option value="Pacific/Tarawa">Pacific/Tarawa</option>" & @CRLF & _ " <option value="Pacific/Tongatapu">Pacific/Tongatapu</option>" & @CRLF & _ " <option value="Pacific/Wake">Pacific/Wake</option>" & @CRLF & _ " <option value="Pacific/Wallis">Pacific/Wallis</option>" & @CRLF & _ " <option value="UTC">UTC</option>" Local $sSubst = "'$1' => __( '$1' )," Local $sResult = StringRegExpReplace($sString, $sRegex, $sSubst) MsgBox($MB_SYSTEMMODAL, "Result", $sResult)

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm