Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c7b4d83

Browse files
fixed remove punctuation snippet
1 parent 12abe5f commit c7b4d83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎snippets/java/string-manipulation/remove-punctuation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags: string,punctuation,clean,normalization
77

88
```java
99
public static String removePunctuation(String text) {
10-
return text.replaceAll("[,!.]", "");
10+
return text.replaceAll("[,!.?;:]", "");
1111
}
1212

1313
// Usage:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /