startsWithUpperCase
boolean sutil.startsWithUpperCase ( String start, String string )
Description
Determine if one string is the start of another, without regards for case.
Parameters
- start Value to be checked as the start, as a string.
- string Value to be searched in, as a string.
Return Values
Returns true if string starts with start when case is not considered; otherwise, it returns false.
Change Log
Version | Description |
---|---|
5.0 | Added for all editions. |
Examples
Does String Start With Another String (Case Insensitive)
// Check for RTMP URLs
sutil.startsWithUpperCase( "rtmp", session.getv( "URL" ) );
sutil.startsWithUpperCase( "rtmp", session.getv( "URL" ) );
scraper on 07/16/2010 at 5:20 pm
- Printer-friendly version
- Login or register to post comments