Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

置換後にタブに変換できない、正規表現使えないような #1723

Closed
misogihagi opened this issue Aug 30, 2021 · 2 comments
Closed

Comments

@misogihagi
Copy link

問題内容

正規表現にチェックを入れて置換前に「a」とか適当な文字いれて置換後に「¥t」みたいに正規表現いれると
a -> ¥t
みたいにタブにならずに「¥t」の文字列がそのまま置換される。
こんな仕様でしたっけ?

問題のカテゴリ

  • 仕様の問題
  • プログラムの動作上の問題
    • 正式リリース版

環境情報

  • OS バージョン
    Windows 10 Pro 64bit

  • サクラエディタバージョン
    サクラエディタ v2.4.1.2849 32bit (tag v2.4.1)
    (GitHash ee8234f)
    (GitURL https://github.com/sakura-editor/sakura.git)

    Compile Info: V1916 WPR WIN601/I800/C000/N601
    Last Modified: 2020/5/30 03:10:34
    
@usagisita
Copy link
Contributor

v2.4.2.3898で確認しましたが、\tはタブに置換されました。
\t (U+005c)ではなく¥t (U+00a5)を使っていると、それはバックスラッシュではないので、タブには置換されないはずです。
あり得る状況としては、\またはtまたは\tが全角になっていると、同様にタブへの置換にはなりません。
そういうことではないですか?

@misogihagi
Copy link
Author

そのとおりでした!
テレワーク始まって端末変わってからバックスラッシュと思っていたものは円記号でした。
表示は同じなので区別つきませんでした…
chromebook色々面倒ですね…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants