So if you have the following string: "$(document).ready(function() {"
There are three open parentheses "("
I know there is the good 'ol string.replace(/(/g, "replacement_string"); way of doing things, but lets just say that doesn't exist for this question.
ここで、"(" を "?" に置き換える関数があるとします。文字列内の "(" ごとに関数を 1 回実行する方法はありますか?