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.
例の正規表現のみを使用して単語の中字を抽出する方法:
"someWord" -> "e" or "W" no sense "Hello" -> "l" "Music" -> "s" "four" -> "o" or "u" no sense
私はあなたがどの環境と言語を使用しているのかわからないので、一般的なスキームを示します:
pattern = '^.{' + Int(Length(str)/2) + '}(.)'
また
pattern = '(?<=^.{' + Int(Length(str)/2) + '}).'