Generalized Regular expression for a possible combinations

  • Thread starter Thread starter SAI KALYAN
  • Start date Start date
S

SAI KALYAN

Guest
I need to write a regular expression which allows some possible combinations of string like , what would be the best way to handle this

CP_[Z0-9].[Z0-9]
CP_[Z0-9].[Z0-9].[Z0-9]
CP_[Z0-9][Z0-9].[Z0-9][Z0-9]
CP_[Z0-9][Z0-9].[Z0-9][Z0-9].[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9].[Z0-9]RC[Z0-9]
CP_[Z0-9].[Z0-9].[Z0-9]RC[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9].[Z0-9][Z0-9]RC[Z0-9]
CP_[Z0-9].[Z0-9].[Z0-9][Z0-9]RC[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9].[Z0-9]RC[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9]P[Z0-9]
CP_[Z0-9].[Z0-9]PR[Z0-9]
CP_[Z0-9].[Z0-9]PRE[Z0-9]
CP_[Z0-9].[Z0-9][Z0-9]P[Z0-9]
CP_[Z0-9].[Z0-9][Z0-9]PR[Z0-9]
CP_[Z0-9].[Z0-9][Z0-9]PRE[Z0-9]
CP_[Z0-9].[Z0-9]P[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9]PR[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9]PRE[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9][Z0-9]P[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9][Z0-9]PR[Z0-9][Z0-9]
CP_[Z0-9].[Z0-9][Z0-9]PRE[Z0-9][Z0-9]




saikalyan

Continue reading...
 
Back
Top