Created
December 25, 2012 08:17
-
-
Save jakeasmith/4372232 to your computer and use it in GitHub Desktop.
Regex example for dont-know.it
This file contains hidden or 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
<select> | |
<option value="ME">Maine</option> | |
<option value="FL">Florida</option> | |
</select> |
This file contains hidden or 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
<?php | |
// Find string | |
// .*value=\"(.*)\">(.*)<.* | |
// Replace string | |
// "$1" => "$2", | |
// PHP example goes here | |
// Result: | |
// "ME" => "Maine", | |
// "FL" => "Florida", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment