Once, outside of loops and perhaps in a companion object. Since compilation is expensive, frequently used Regexes should be constructed The regular expression syntax for pattern strings.Īn instance of Regex represents a compiled regular expression pattern. See the documentation for for details about This class delegates to the package of the Java Platform. Definition Classes rootĪ regular expression is used to determine whether a string matches a patternĪnd, if it does, to extract or transform the parts that match. For example, on the JVM, String is an alias for. Other aliases refer to classes provided by the underlying platform. Some of these identifiers are type aliases provided as shortcuts to commonly used classes. Identifiers in the scala package and the scala.Predef object are always in scope by default. - Parser combinators (scala-parser-combinators.jar).scala.swing - A convenient wrapper around Java's GUI framework called Swing (scala-swing.jar).Such matching starts at the beginning of the string and. scala.xml - XML parsing, manipulation, and serialization (scala-xml.jar) The regular expression engine attempts to match the regular expression against the input string.scala.reflect - Scala's reflection API (scala-reflect.jar).See the complete list on the right.Īdditional parts of the standard library are shipped as separate libraries. scala.sys - Interaction with other processes and the operating system.scala.math - Basic math functions and additional numeric types like.ncurrent - Primitives for concurrent programming such as.- Mutable, concurrent data-structures such as.- Mutable, sequential data-structures such as.- Immutable, sequential data-structures such as.llection and its sub-packages contain Scala's collections framework.Or Option which are accessible in all Scala compilation units without explicit qualification or The scala package contains core types like Int, Float, Array This is the documentation for the Scala standard library. multiline (m) - causes and to mark the beginning and end of each line use A and z to match the end or beginning of the string.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |