Skip to content

Instantly share code, notes, and snippets.

@mpurbo
Created January 21, 2012 04:28
Show Gist options
  • Save mpurbo/1651292 to your computer and use it in GitHub Desktop.
Save mpurbo/1651292 to your computer and use it in GitHub Desktop.
Regular expression for pattern commonly found in Japanese time range data
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