String
extension Stringextension String: URLConvertible- 
                  
                  Retuns the localized string using the CheetahDigitalUtils.Localizer.DeclarationSwift public var localized: String { get }
- 
                  
                  Returns a URLif theStringcan be used to initialize aURL, otherwise throws if an error was encountered.Throws AURLError.invalidURLerror.DeclarationSwift public func asURL() throws -> URLReturn ValueThe URLinitialized with theString.
- 
                  
                  Returns the first extracted YouTube Id from the String. If there is none, this will be nil.DeclarationSwift var youtubeId: String? { get }
- 
                  
                  Returns the first URL found in the String. If there is none or the URL is invalid, this returns nil.DeclarationSwift var firstUrl: URL? { get }
- 
                  
                  Finds the first match given a regular expression pattern in the String.DeclarationSwift func firstMatchForRegEx(_ pattern: String) -> String?ParameterspatternThe regular expression pattern. Return ValueThe first match given a regular expression pattern in the String. If there is none, this is nil.
- 
                  
                  Returns an NSAttributedStringinterpreting the HTML from theString.DeclarationSwift var attributedHTMLString: NSAttributedString? { get }
- 
                  
                  Returns the String stripped of CSS. DeclarationSwift var strippedCSS: String { get }
- 
                  
                  Returns the String stripped of HTML, CSS and NBSP. DeclarationSwift var strippedHTML: String { get }
- 
                  
                  Returns true if the Stringis a valid URL along with scheme and host, otherwise it returns false.DeclarationSwift var isValidURL: Bool { get }
- 
                  
                  Returns true if the Stringis a valid email address, otherwise it returns false.DeclarationSwift var isValidEmail: Bool { get }
- 
                  
                  Returns true if the Stringis a valid phone number, otherwise it returns false.A valid phone number in this case is a Stringwith no letters.DeclarationSwift var isValidPhoneNumber: Bool { get }
- 
                  
                  Returns true if the Stringis blank, otherwise it returns false.A blank string is considered either empty or just having whitespace or new lines. DeclarationSwift var isBlank: Bool { get }
- 
                  
                  Create a string period based on the given date strings. If both parameters or the startDate are invalid, this method will just throw an empty string. But if endDate is invalid this will instead used the word Onwards. DeclarationSwift static func createPeriod(startDate: String, endDate: String, dateFormat: String, resultFormat: String) -> StringParametersstartDateThe beginning of the period. endDateThe end of the period. dateFormatThe format of the given dates. resultFormatThe resulting format of the dates in the period string. Return ValueA string period. 
 String Extension Reference
        String Extension Reference