Timeline for Using String.replaceAll() to remove character combination
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 23, 2020 at 15:59 | vote | accept | jdrees | ||
Sep 23, 2020 at 15:54 | comment | added | jdrees | Cool! It worked as expected! Thank you! | |
Sep 23, 2020 at 15:51 | comment | added | Derek F |
An alternative would be '-{2,} , which specifies that any number of hyphens >= 2 get matched by the regex. Using '-+' is shorter, using {x,y} allows you to be more specific (x or more when y is left blank, between x and y instances when x and y are given)
|
|
Sep 23, 2020 at 15:46 | history | answered | sfdcfox♦ | CC BY-SA 4.0 |