Recent

Author Topic: RegExpr: how to replace \t in repl-with  (Read 2594 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
RegExpr: how to replace \t in repl-with
« on: October 23, 2015, 09:41:22 pm »
Looking for a way to replace \t in "replace with" in app, app uses regexpr. RE dont see  \t as tab char in replace-with. I maybe may try to replace it in my app but:

\t needs replace
\\t not needs
\\\t needs
\\\\t not needs
etc

what is ok way to replace \t?

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: RegExpr: how to replace \t in repl-with
« Reply #1 on: October 23, 2015, 10:38:06 pm »
Code: [Select]
([^\\](\\\\)+)\\t
« Last Edit: October 23, 2015, 10:48:37 pm by BeniBela »

AlexTP

  • Hero Member
  • *****
  • Posts: 2386
    • UVviewsoft
Re: RegExpr: how to replace \t in repl-with
« Reply #2 on: October 24, 2015, 03:35:34 pm »
Hi. This RE is not ok: i need to replace \t but not preceding pairs: \\, \\\\

 

TinyPortal © 2005-2018