Skip to content

Commit c7b4d83

Browse files
committed
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)