Relative Content

Tag Archive for javaregex

How does this this regex work and what are the exact matches for it [u{0300}-u{036F}]

On discord automod saw this getting triggered and then went to regex101 and got an error even with “Unicode” Label. Asked ChatGPT and it gave me an explanation that doesn’t have nothing to do with the face emoji that was triggered in the first place. So can anyone say what it exactly triggers?[text]([[enter image description here](https://i.sstatic.net/wtPhRXY8.jpg)](https://i.sstatic.net/TSvFYLJj.jpg))

Regex Pattern to Mask Field with Commas in Java

I am working on a Java application that processes strings. I need to mask the content of a specific field in these strings. The challenge I’m facing is that this field sometimes contains commas, which interferes with my current masking pattern. Here is what I have so far: