question: a function to generate regex which matches interval string 's unit part like `` 3 years '' . first , we can leave out some units in interval string , and we only care about the value of unit , so here we use non-capturing group to wrap the actual regex . at the beginning of the actual regex , we should match spaces before the unit part . next is the number part , starts with an optional '' - '' to represent negative value . we use capturing group to wrap this part as we need the value later . finally is the unit name , ends with an optional `` s '' . concode_field_sep long MICROS_PER_WEEK concode_elem_sep long MICROS_PER_HOUR concode_elem_sep long MICROS_PER_MILLI concode_elem_sep int months concode_elem_sep long MICROS_PER_DAY concode_elem_sep Pattern yearMonthPattern concode_elem_sep long MICROS_PER_MINUTE concode_elem_sep Pattern p concode_elem_sep long MICROS_PER_SECOND concode_elem_sep long microseconds concode_elem_sep Pattern quoteTrimPattern concode_elem_sep Pattern dayTimePattern concode_field_sep long parseSecondNano concode_elem_sep CalendarInterval add concode_elem_sep long milliseconds concode_elem_sep long toLong concode_elem_sep void appendUnit concode_elem_sep CalendarInterval subtract concode_elem_sep long toLongWithRange concode_elem_sep CalendarInterval fromYearMonthString concode_elem_sep CalendarInterval fromDayTimeString concode_elem_sep CalendarInterval negate concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString concode_elem_sep CalendarInterval fromString concode_elem_sep CalendarInterval fromSingleUnitString
target: String function ( String arg0 ) { return "srini_string" + arg0 + "srini_string" ; }