regXwild icon indicating copy to clipboard operation
regXwild copied to clipboard

Disable Meta-Symbols

Open 3F opened this issue 9 years ago • 0 comments

~v1 - Same char to escape~

  • 1024*2 -> 10247412
  • 1024**2 -> 1024*2
  • 1024***2 -> 1024*0xD2
  • one|two -> one or two
  • one||two -> one|two
  • one|||two -> one| or two
  • one||||two -> one||two
  • one|||||two -> one|| or two
  • one|*||two -> one or |two
  • one|*||||two -> one or ||two

... for each available meta-symbol

upd: no, ESS version provides #, that means 1 any symbol, thus we cannot use this because of: track-num:*###7400 and similar.

v2 - markers via flags

We'll add @ + special flag ([a-z0-9] only) + @@ to escape this flag

Then we can use unified combinations of this, for example:

  • @ + d for disable all meta-symbols before new @(?) -> @d ... @
    • 1024*2 -> 10247412
    • 1024@d*@2 -> 1024*2 or @d1024*2@ -> 1024*2
    • @d1024*@*2 -> 1024*0xD2
    • @@d1024*@*2 -> @@d1024*@0xD2 -> note: @* ok (@ + [a-z0-9])
    • one|two -> one or two
    • @done|two@ -> one|two
    • @done|@|two -> one| or two
    • @done||two@ -> one||two
    • @done||@|two -> one|| or two
    • one|@d|two@ -> one or |two
    • one|@d||two@ -> one or ||two

well, this is more powerful way, but probably more hard for view o_o and:

  • v2: one|@d||two@ <- ?@done|@@d||two@@@
  • v1: one|@d||two@ <- one||@@d||||two@@

v3 - markers via single tilde '~'

v2 can also be as simple ~ ... ~ + to escape ~~:

  • one|@d||two@ <- ~one|@d||two@~
  • one|~d||two~ <- ~one|~~d||two~~~

3F avatar Feb 11 '17 12:02 3F