regex - IJ in a Regular Expression - What does it mean? -
the new version of type expansion software upgraded has included regular expressions. trying understand them little improve looking break downwards 2 they've included help avoid double capitalization @ origin of word.
the first
\b[:upper:][:upper:][:lower:]+ i take mean there word break before entry begins , first 2 letters have capital , 1 or more lowercase letters.
the sec
\b(ij|cc)[:lower:]+ which take mean if word begins capital "i" , capital "j" or 2 consecutive capital "c" plus 1 or more lowercase letter allow them exceptions.
i sense missing here. can advise these expressions mean?
"ij" means character sequence, "i" followed "j" - nil special - , conclusion behavior (if not reasoning) correct.
the look \b(ij|cc)[:lower:]+2 simply restrictive subset of \b[:upper:][:upper:][:lower:]+1, restricts input starting "ij" or "cc".
string matches ------ ------- foo (none) ij (none) no mach on [:lower:]+ ijfoo 1, 2 matches ij, matches [:upper:][:upper:] ccfoo 1, 2 xxfoo 1 matches [:upper:][:upper:], not ij|cc regex
No comments:
Post a Comment