Created
January 21, 2012 04:28
-
-
Save mpurbo/1651292 to your computer and use it in GitHub Desktop.
Regular expression for pattern commonly found in Japanese time range data
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
public static final String REGEX_TIMERANGE = "(?:AM|PM)?([0-90-9]{1,2})[::\\.]([0-90-9]{1,2})[\uff5e\u301c-―-](?:AM|PM)?([0-90-9]{1,2})[::\\.]([0-90-9]{1,2})"; | |
public static final Pattern PATTERN_TIMERANGE = Pattern.compile(REGEX_TIMERANGE); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment