imbStringIsTests Class |
Namespace: imbSCI.Core.extensions.text
The imbStringIsTests type exposes the following members.
| Name | Description | |
|---|---|---|
| isAlfaNumericWord |
Vraca TRUE ako je slovna ili brojna vrednost - d [\w\d]+
| |
| isAllCapitalLetterCaseWord |
Test if input matches ([\p{Lu}]+)\b
| |
| isAllLowerLetterCaseWord |
Test if input matches \b([\p{Ll}]+)\b
| |
| isCleanWord |
Proverava da li je string cista rec ili ima jos nesto u sebi - ([A-ZČŠĆŽĐa-zžđščć]{1,})\b
| |
| IsDate | ||
| isDecimalNumber |
Test if input matches [\d]{1,}[\,\.]{1,}[\d]{1,}
| |
| isEnbracedSubSentence |
Test if input matches ([\(]([A-Za-z\s,;:\-])+[\)])
| |
| isEndsWithEnumerationPunctation |
Test if input matches ([\w\s]+)[\:]+$
| |
| isEndsWithExclamationPunctation |
Test if input matches ([\w\s]+)[\!]+$
| |
| isEndsWithQuestionPunctation |
Test if input matches ([\w\s]+)[\?]+$
| |
| isEnumerationSubSentence |
Test if input matches \b([\:]{1}([\s]*([A-ZČŠĆŽĐa-zžđščć]{1,3})+([\s]{0,2}([,\;\-]{1}|[\s]{0,1}[\w]{1}[\s]{1}))*){1,})
| |
| isFirstCapitalRestLowerCase |
Test if input matches ([\p{Lu}]{1}[\p{Ll}]+)
| |
| isFormatedNumber |
Test if input matches ([\d]{1,}[\\\/\:\.\-\|\s]{1,3}){0,5}[\d]{1,}
| |
| isInnerSentence |
Test if input matches (,{1}[\s]{1})([\w\d\s]*)(,{1}[\s]{1})
| |
| isIntegerOrDecimalWithSign |
proverava da li je u pitanju broj koji moze biti decimalan, moze pocinjati i negaitvnom vrednoscu, a moze biti i obican broj bez decimala
| |
| isIsPotentialCityAndPost |
Test if input matches (\b[\d]{5}[\s\n]{1,3}([A-ZČŠĆŽĐ]{1}[a-zžđščć]{1,}|[A-ZČŠĆŽĐ]{2,}))|(([A-ZČŠĆŽĐ]{1}[a-zžđščć]{1,}|[A-ZČŠĆŽĐ]{2,}){1}[\s\n]{1,3}[\d]{5}\b)
| |
| isLowerCase |
Test if input matches ^[a-zžđščć\s\d\.\-_,:;\(\)]{1,}$
| |
| isMultiline | ||
| isNoLowerCaseTokenStream |
Test if input matches ^[\P{Ll}]*$
| |
| isNumber |
Obican broj - nez decimale i bez negativnog znaka [\d]+
| |
| isNumberFormatted |
Test if input matches [\+]? [\p{P}]? [\d\s\p{P}]+ \d+
| |
| isOneLetterKeyedNumber |
Proverava da li je prodledjen string u formatu [jedno slovo][- ili nista][broj koji moze biti decimalan]
| |
| isOrdinalNumber |
Test if input matches [\d]{1,}[\.]{1}
| |
| isPercentageNumber |
Test if input matches (([\-\+]?[\s]?)?([\d\.\,]+[\s]?%))
| |
| isPotentialPersonalNamePair |
Test if input matches [A-ZČŠĆŽĐ]{1}[a-zžđščć]{2,}[\s]{1,4}[A-ZČŠĆŽĐ]{1}[a-zćšđčž]{2,}
| |
| isPotentialStreetAndNumber |
Test if input matches ([A-ZČŠĆŽĐ]{1}[a-zžđščć]{2,}[\s]{1,4}[A-ZČŠĆŽĐ]{1}[a-zćšđčž]{2,}\s+[\w\d\\-]{1,})
| |
| isProperHtmlDocument |
Determines whether the source is proper HTML document having DOCTYPE header or
| |
| isQuotedSubSentence |
Test if input matches ([\""]([A-Za-z\s,;:\-])+[\""])
| |
| isRegexMatch | ||
| isSentenceCase |
Test if input matches ^[A-ZČŠĆŽĐ]{1}[A-ZČŠĆŽĐa-zžđščć\s\d\.\-_,:;\(\)]{1,}$
| |
| isSentenceFragmentCase |
Test if input matches ^[a-zžđščć\d\.\-_,:;\(\)]{1}[A-ZČŠĆŽĐa-zžđščć\s\d\.\-_,:;\(\)]{1,}$
| |
| isStrictSentenceCase |
Test if input matches ^[]{1}[a-zžđščć\s\d\-_,\:;]{1,}$
| |
| isSymbolicContentOnly |
Test if input matches ^[\W\s]+$
| |
| isUpperCase |
Test if input matches ^[A-ZČŠĆŽĐ]{1}[A-ZČŠĆŽĐ\s\d\.\-_,:;\(\)]{1,}$
| |
| IsValidUrl | ||
| isWithLetterChars |
Test if input matches \p{L}
| |
| isWithNumericChars |
Test if input matches [\d]
| |
| isWithPunctChars |
Test if input matches \p{P}
| |
| isWord |
Test if input matches [A-ZČŠĆŽĐa-zžđščć]{1,}
| |
| isWordCaseCamel | ||
| isWordCaseLower | ||
| isWordCaseUpper | ||
| isWordNumber |
Da li token pocinje sa jednim ili vise slova a zatim sadrzi brojeve
| |
| Linkify | ||
| Parameters |
| Name | Description | |
|---|---|---|
| _select_cleanWord |
Regex select CleanWord : ([A-ZČŠĆŽĐa-zžđščć]{1,})\b
| |
| _select_isAlfaNumericWord |
Regex select AlfaNumericWord : [\w\d]+
| |
| _select_isAllCapitalLetterCaseWord |
Regex select AllCapitalLetterCaseWord : ([\p{Lu}]+)\b
| |
| _select_isAllLowerLetterCaseWord |
Regex select AllLowerLetterCaseWord : \b([\p{Ll}]+)\b
| |
| _select_isCleanWord | ||
| _select_isDecimalNumber |
Regex select DecimalNumber : [\d]{1,}[\,\.]{1,}[\d]{1,}
| |
| _select_isEnbracedSubSentence |
Regex select EnbracedSubSentence : ([\(]([A-Za-z\s,;:\-])+[\)])
| |
| _select_isEndsWithEnumerationPunctation |
Regex select EndsWithEnumerationPunctation : ([\w\s]+)[\:]+$
| |
| _select_isEndsWithExclamationPunctation |
Regex select EndsWithExclamationPunctation : ([\w\s]+)[\!]+$
| |
| _select_isEndsWithQuestionPunctation |
Regex select EndsWithQuestionPunctation : ([\w\s]+)[\?]+$
| |
| _select_isEnumerationSubSentence |
Regex select EnumerationSubSentence : \b([\:]{1}([\s]*([A-ZČŠĆŽĐa-zžđščć]{1,3})+([\s]{0,2}([,\;\-]{1}|[\s]{0,1}[\w]{1}[\s]{1}))*){1,})
| |
| _select_isFirstCapitalRestLowerCase |
Regex select FirstCapitalRestLowerCase : ([\p{Lu}]{1}[\p{Ll}]+)
| |
| _select_isFormatedNumber |
Regex select FormatedNumber : ([\d]{1,}[\\\/\:\.\-\|\s]{1,3}){0,5}[\d]{1,}
| |
| _select_isInnerSentence |
Regex select InnerSentence : (,{1}[\s]{1})([\w\d\s]*)(,{1}[\s]{1})
| |
| _select_isIntegerOrDecimalWithSign |
Regex select IntegerOrDecimalWithSign : [\d\-\.]+
| |
| _select_isIsPotentialCityAndPost |
Regex select IsPotentialCityAndPost : (\b[\d]{5}[\s\n]{1,3}([A-ZČŠĆŽĐ]{1}[a-zžđščć]{1,}|[A-ZČŠĆŽĐ]{2,}))|(([A-ZČŠĆŽĐ]{1}[a-zžđščć]{1,}|[A-ZČŠĆŽĐ]{2,}){1}[\s\n]{1,3}[\d]{5}\b)
| |
| _select_isLowerCase |
Regex select LowerCase : ^[a-zžđščć\s\d\.\-_,:;\(\)]{1,}$
| |
| _select_isNoLowerCaseTokenStream |
Regex select NoLowerCaseTokenStream : ^[\P{Ll}]*$
| |
| _select_isNumber |
Regex select Number : [\d]+
| |
| _select_isNumberFormatted |
Regex select NumberFormatted : [\+]? [\p{P}]? [\d\s\p{P}]+ \d+
| |
| _select_isOneLetterKeyedNumber |
Regex select OneLetterKeyedNumber : [A-ZČŠĆŽĐa-zžđščć]{1}[\d\.\-]+
| |
| _select_isOrdinalNumber |
Regex select OrdinalNumber : [\d]{1,}[\.]{1}
| |
| _select_isPercentageNumber |
Regex select PercentageNumber : (([\-\+]?[\s]?)?([\d\.\,]+[\s]?%))
| |
| _select_isPotentialPersonalNamePair |
Regex select PotentialPersonalNamePair : [A-ZČŠĆŽĐ]{1}[a-zžđščć]{2,}[\s]{1,4}[A-ZČŠĆŽĐ]{1}[a-zćšđčž]{2,}
| |
| _select_isPotentialStreetAndNumber |
Regex select PotentialStreetAndNumber : ([A-ZČŠĆŽĐ]{1}[a-zžđščć]{2,}[\s]{1,4}[A-ZČŠĆŽĐ]{1}[a-zćšđčž]{2,}\s+[\w\d\\-]{1,})
| |
| _select_isQuotedSubSentence |
Regex select QuotedSubSentence : ([\""]([A-Za-z\s,;:\-])+[\""])
| |
| _select_isSentenceCase |
Regex select SentenceCase : ^[A-ZČŠĆŽĐ]{1}[A-ZČŠĆŽĐa-zžđščć\s\d\.\-_,:;\(\)]{1,}$
| |
| _select_isSentenceFragmentCase |
Regex select SentenceFragmentCase : ^[a-zžđščć\d\.\-_,:;\(\)]{1}[A-ZČŠĆŽĐa-zžđščć\s\d\.\-_,:;\(\)]{1,}$
| |
| _select_isStrictSentenceCase |
Regex select StrictSentenceCase : ^[A-ZČŠĆŽĐ]{1}[a-zžđščć\s\d\-_,\:;]{1,}$
| |
| _select_isSymbolicContentOnly |
Regex select SymbolicContentOnly : ^[\W\s]+$
| |
| _select_isUpperCase |
Regex select UpperCase : ^[A-ZČŠĆŽĐ]{1}[A-ZČŠĆŽĐ\s\d\.\-_,:;\(\)]{1,}$
| |
| _select_isWithLetterChars |
Regex select WithLetterChars : \p{L}
| |
| _select_isWithNumericChars |
Regex select WithNumericChars : [\d]
| |
| _select_isWithPunctChars |
Regex select WithPunctChars : \p{P}
| |
| _select_isWord |
Regex select Word : [A-ZČŠĆŽĐa-zžđščć]{1,}
| |
| _select_isWordNumber |
Regex select WordNumber : \b[A-ZČŠĆŽĐa-zžđščć]{2,}[\d\.\-]+\b
| |
| _select_wordcaseCamel |
Regex select caseCamel : ([A-ZČŠĆŽĐ]{1}[a-zžđščć]{1,})
| |
| _select_wordcaseLower |
Regex select caseLower : ([a-zžđščć]{1,})
| |
| _select_wordcaseUpper |
Regex select caseUpper : ([A-ZČŠĆŽĐ]{1,})\b
|