# Abbreviations and acronyms plugin

**URL:** <https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501>\
**Category:** Plugin\
**Tags:** deprecated\
**Created:** [January 26, 2016, 10:47am UTC](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501 "2016-01-26T10:47:03Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [June 16, 2016, 12:44am UTC](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501/11 "2016-06-16T00:44:10Z")

</div>

> [@BlackSheep](#):
>
> Maybe i should force to detect a whitespace character (space, tab, new line, etc) on either side of the acronym before i do the substitution.

Yes, currently the regex is looking for a word boundary after the token as a match.

slashes, question marks. etc. _are_ word boundaries.

Testing for pre and post whitespace will work for the link use case.

But it will break if the acronym is written in parenthesis eg. (YMMV) would fail to match.  
(I can’t say how often that might be the case, but you just know someone will bring it up)

---

_[View the full topic](https://meta.discourse.org/t/abbreviations-and-acronyms-plugin/38501)._
