Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
What is a regular expression to check TON addresses?

Probably the TON community has already crafted the best regular expression for validating TON addresses. In fact, there could be two expressions: for the raw (hex) and user-friendly representations. What are they?


This question was imported from Telegram Chat: https://t.me/tondev/52663

Votes Newest

Answers 2


а для dns?)

  
  
Posted one year ago

For raw addresses, something like this should work
^(0|-1):([a-f0-9]{64}|[A-F0-9]{64})$

1
1
Posted one year ago
20K Views
2 Answers
one year ago
one year ago
Tags