Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マークアップで「N/A」のインスタンスを見つけて、別のものと交換しようとすると、
var $reg = new RegExp('[Nn]/[Aa]');
他のバリエーションは次のとおりです。
/[Nn]/[Aa]/
'^[Nn]/[Aa]'
私は提案します:
stringToSearchIn.replace(/(N\/A)/gi,'words to replace with');
\/
/
gi
g
i
n
N
a
A
JSフィドルデモ
あなたはこれを使うことができます:
N\/A