java.util.regex.PatternSyntaxException: Illegal repetition {userName}


Solutions on the web176

Solution icon of stackoverflow
via Stack Overflow by Boston Star
, 1 year ago
Illegal repetition {userName}

Solution icon of stackoverflow
Illegal repetition near index 1 $P{table} ^

Solution icon of stackoverflow
Illegal repetition {

Solution icon of stackoverflow
via Stack Overflow by HydroTekZ
, 1 year ago
Illegal repetition {

Solution icon of stackoverflow
Illegal repetition {

Solution icon of github
Illegal repetition {



Solution icon of web
Illegal repetition {

Solution icon of stackoverflow
via Stack Overflow by Prateek
, 1 year ago
Illegal repetition {IMAGE:abcd}

Solution icon of stackoverflow
Illegal repetition {display_name}.*

Solution icon of oraclecommunity
Illegal repetition {user}

Stack trace

java.util.regex.PatternSyntaxException: Illegal repetition
{userName}
	at java.util.regex.Pattern.error(Unknown Source)
	at java.util.regex.Pattern.closure(Unknown Source)
	at java.util.regex.Pattern.sequence(Unknown Source)
	at java.util.regex.Pattern.expr(Unknown Source)
	at java.util.regex.Pattern.compile(Unknown Source)
	at java.util.regex.Pattern.<init>(Unknown Source)
	at java.util.regex.Pattern.compile(Unknown Source)
	at java.lang.String.replaceAll(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 5 months ago
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 days ago
24 more bugmates