public MarkupText . SubText findToken ( Pattern pattern ) { String text = getText ( ) ; Matcher m = pattern . matcher ( text ) ; if ( m . find ( ) ) return createSubText ( m ) ; return null ; }
Find the first occurrence of the given pattern in this text or null .