Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat's the regex for removing dots in acronyms but not in domain names?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COIMHO a regex is not the right tool for your problem. It might be possible but leads to overly complex code. I would employ a more traditional approach and use a mix regexs and python code to split the string into its components (normal text, acronyms, ...) and process the parts indivually. More verbose but also more maintainable.
      singulars
    2. COI probably should have mentioned that I'm using this as part of a series of other regex's to normalize a sequence of strings representing informal human conversations. I can tolerate a few errors if that would save me from doing a more thorough parsing.
      singulars
    3. COYou need to specify the problem better. Is your data always in three space separated parts, and you only want to affect the first part? Or do you need to apply this to arbitrary text? If the later, how would you define an acronym? Only single letters? If so, what do you expect to happen with http://a.b.example.com? Or is it that you want to remove embedded periods except when you know it is part of a domain name? But that only begs the question: When is it part of a domain name: After @ or http://? What about ssh: or other URL schemes? Once defined, any of these would be an easy regex.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload