Vyxapedia

Element - Ż - Slice From One Until

Characters: Ż


Description

Slice from index 1 until a number / get groups of a regex match


Overloads

  • any-num - a[1:b] (slice from 1 until b)
  • num-any - b[1:a] (slice from 1 until a)
  • str-str - regex.match(pattern=a,string=b).groups() (Get groups for a regex match)
  • fun-any - get all groups from b where a(x) is truthy

Examples

  • `abc` 2 Ż = `b`
  • ⟨1|2|3⟩ 3 Ż = ⟨2|3⟩
  • 123 3 Ż = 23
  • `abc` `.` Ż = ⟨⟩
  • `abc` `d` Ż = ⟨⟩
  • `abc` 9 Ż = `bcabcabc`