[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.12720816 [View]
File: 25 KB, 290x248, Screenshot 2021-02-18 at 18.19.51.png [View same] [iqdb] [saucenao] [google]
12720816

Java Regex is dumb.

I have the following regex:

(&[^&]+=)[^&]+(?=(.{0,})\1[^&]+)

where I am trying to replace duplicate URL queries, so a token of the form of &variable=value. Java regex pattern matcher says I have a match, but if I try to replace it nothing happens.

Any Ideas?

Navigation
View posts[+24][+48][+96]