delight-strings

Utilities for working with strings.

License

License

GPL
GroupId

GroupId

org.javadelight
ArtifactId

ArtifactId

delight-strings
Last Version

Last Version

0.0.8
Release Date

Release Date

Type

Type

bundle
Description

Description

delight-strings
Utilities for working with strings.
Project URL

Project URL

https://github.com/javadelight/delight-strings
Source Code Management

Source Code Management

https://github.com/javadelight/delight-strings

Download delight-strings

Dependencies

provided (1)

Group / Artifact Type Version
com.google.gwt : gwt-user jar 2.8.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.7

Project Modules

There are no modules declared in this project.

Build Status

delight-strings

Utilities to work with Strings.

Part of the Java Delight Suite.

Usage

Generate a random string:

String rnd = new RandomString(5).nextString();
// rnd = "s4fWf" or similar

Remove special characters:

String san = SanitizeStrings.getSimpleName("hj&^aas", 5);
// san = "hj__a"

Get domain from URI:

String domain = UriUtils.getDomain("https://objecthub.io/docs");
// domain = "objecthub.io"

Get parent in URI:

String parent = UriUtils.getParent("https://objecthub.io/users/u1");
// parent = "https://objecthub.io/users"

Maven

<dependency>
    <groupId>org.javadelight</groupId>
    <artifactId>delight-strings</artifactId>
    <version>0.0.3</version>
</dependency>

This artifact is available on Maven Central and BinTray.

Maven Central

Further Documentation

Versions

Version
0.0.8
0.0.3