javascript - Replace uppercase acronym with its full text lowercase *except* when in a Headline Case Sentence -
javascript - Replace uppercase acronym with its full text lowercase *except* when in a Headline Case Sentence -
i want replace uppercase acronym (e.g. "what ip address") lowercase total text ("what internet protocol address") unless has been used in sentence that's in headline case, in case want create acronym headline case ("what internet protocol address?").
the fact target replacement uppercase acronym makes more complicated simple substitution cloud-to-butt.
i'll doing in javascript browser plugin, don't want super slow.
i can think of couple pretty gross, awkward hacks maybe create work, if has more elegant, i'd love see it.
use javascript replace function replace string, , few checking create sure has not been used in header.
javascript string
Comments
Post a Comment