Regular Expressions 101

Library entries

Check if the title ends in is alid or not in java using regex

Vote

2

Regular Expression
pcre

~
(\s*)(\d+)?(\.\d+)?(\s*)(?i:years|year|yrs|y|months|month|m)?(\s*)(/)?(\s*)(\d+)?(\.\d+)?(\s*)(?i:years|year|yrs|y|months|month|m)?(\s*)(-)?(\s*)(\d+)(\.\d+)?(\s*)?(?i:years|year|yrs|y|months|month|m)
~
igm

Description

Loading markdown...
Submitted by Sriharsha - 6 years ago