# \#string

**URL:** https://ziggit.dev/tag/string/68.md

[Latest](https://ziggit.dev/latest.md) · [Categories](https://ziggit.dev/categories.md) · [Tags](https://ziggit.dev/tags.md)

---

## [Regrex: a tiny implementation of basic regular expressions](https://ziggit.dev/t/regrex-a-tiny-implementation-of-basic-regular-expressions/16658)

<div class="topic-metadata">

**Author:** [@oniko94](https://ziggit.dev/u/oniko94)\
**Replies:** 0\
**Last updated:** [July 11, 2026, 4:45pm UTC](https://ziggit.dev/t/regrex-a-tiny-implementation-of-basic-regular-expressions/16658 "2026-07-11T16:45:09Z")

</div>

regrex: regrex means regret + regex. Something a lot of developers can relate to - an inescapable dread of processing text and having to utilize regular expressions, the meaning of which even the best can forget in two …

---

## [Existing type to dump all my strings into?](https://ziggit.dev/t/existing-type-to-dump-all-my-strings-into/15803)

<div class="topic-metadata">

**Author:** [@WeeBull](https://ziggit.dev/u/WeeBull)\
**Replies:** 9\
**Last updated:** [June 3, 2026, 12:01pm UTC](https://ziggit.dev/t/existing-type-to-dump-all-my-strings-into/15803 "2026-06-03T12:01:58Z")

</div>

I writing a small tool that’s going to be processing hundreds of thousand of structs (items). Each one of these items has a string identifier associated with it. Of course, the strings are variable length and completely …

---

## [Bugs Rust Won’t Catch - Zig Strings](https://ziggit.dev/t/bugs-rust-won-t-catch-zig-strings/15239)

<div class="topic-metadata">

**Author:** [@Kaeru](https://ziggit.dev/u/Kaeru)\
**Replies:** 23\
**Last updated:** [May 5, 2026, 1:49pm UTC](https://ziggit.dev/t/bugs-rust-won-t-catch-zig-strings/15239 "2026-05-05T13:49:57Z")

</div>

I found this blog Bugs Rust Won't Catch | corrode Rust Consulting extremely interesting when taking into account the choice to not have a String type in Zig. Many of the bugs present in Rust’s uutils had to do with using…

---

## [Trouble concatenating strings using an allocator](https://ziggit.dev/t/trouble-concatenating-strings-using-an-allocator/13632)

<div class="topic-metadata">

**Author:** [@DayDreamer-3d](https://ziggit.dev/u/DayDreamer-3d)\
**Replies:** 16\
**Last updated:** [December 25, 2025, 12:21am UTC](https://ziggit.dev/t/trouble-concatenating-strings-using-an-allocator/13632 "2025-12-25T00:21:32Z")

</div>

Hello Everyone, newbie here coming to zig from a high level language like python and I am trying to concatenate strings at the runtime using an allocator and have the below function, however the call is running into err…

---

## [Code Review: String sorting](https://ziggit.dev/t/code-review-string-sorting/13599)

<div class="topic-metadata">

**Author:** [@DayDreamer-3d](https://ziggit.dev/u/DayDreamer-3d)\
**Replies:** 2\
**Last updated:** [December 22, 2025, 10:49am UTC](https://ziggit.dev/t/code-review-string-sorting/13599 "2025-12-22T10:49:54Z")

</div>

Hello everyone, I am new to the zig language and trying toy exercises like string\_sorting etc. I would like to get my below code reviewed, please feel free to let me know any and every improvement I can make to it. co…

---

## [Reading from sqlite db in \`while\` loop causes wrong string output, but works if using \`if\`](https://ziggit.dev/t/reading-from-sqlite-db-in-while-loop-causes-wrong-string-output-but-works-if-using-if/12001)

<div class="topic-metadata">

**Author:** [@imomaliev](https://ziggit.dev/u/imomaliev)\
**Replies:** 13\
**Last updated:** [September 13, 2025, 11:15am UTC](https://ziggit.dev/t/reading-from-sqlite-db-in-while-loop-causes-wrong-string-output-but-works-if-using-if/12001 "2025-09-13T11:15:56Z")

</div>

Hi, I am learning Zig and have encountered weird behavior (see example below). I am pretty sure I’m misunderstanding something for this error to occur, but I can’t figure out what exactly :pensive\_face: Can somebody plea…

---

## [ANN: RuneSet](https://ziggit.dev/t/ann-runeset/5013)

<div class="topic-metadata">

**Author:** [@mnemnion](https://ziggit.dev/u/mnemnion)\
**Replies:** 12\
**Last updated:** [March 17, 2025, 5:01pm UTC](https://ziggit.dev/t/ann-runeset/5013 "2025-03-17T17:01:43Z")

</div>

I’m pleased to announce the completion of my first major Zig project, runeset. RuneSets are a fast data structure for working with sets of UTF-8 encoded data. This is primarily intended for abstract characters aka scal…

---

## [Casting to a C array of strings](https://ziggit.dev/t/casting-to-a-c-array-of-strings/8872)

<div class="topic-metadata">

**Author:** [@videbar](https://ziggit.dev/u/videbar)\
**Replies:** 10\
**Last updated:** [March 7, 2025, 5:39am UTC](https://ziggit.dev/t/casting-to-a-c-array-of-strings/8872 "2025-03-07T05:39:57Z")

</div>

Hi everyone, I’m currently building a zig project and I depend on a C library. One of the functions of the library takes as a parameter an array of strings, i.e., an array of pointers terminated with a null pointer (the…

---

## [Please help me understand a fixed array of wide strings in Zig](https://ziggit.dev/t/please-help-me-understand-a-fixed-array-of-wide-strings-in-zig/7988)

<div class="topic-metadata">

**Author:** [@sohro\_desu](https://ziggit.dev/u/sohro_desu)\
**Replies:** 30\
**Last updated:** [January 23, 2025, 4:27pm UTC](https://ziggit.dev/t/please-help-me-understand-a-fixed-array-of-wide-strings-in-zig/7988 "2025-01-23T16:27:43Z")

</div>

Hi there! I’m grateful that I can ask questions here. A little about my background I’m new to Zig, have 6+ months of experience with C, and I started rewriting my latinic-cyrillic transliterator utility in Zig. I’m curr…

---

## [String Operations at comptime: convert @embedFile(windows\_file) to unix\_file](https://ziggit.dev/t/string-operations-at-comptime-convert-embedfile-windows-file-to-unix-file/7245)

<div class="topic-metadata">

**Author:** [@wlolwz](https://ziggit.dev/u/wlolwz)\
**Replies:** 9\
**Last updated:** [December 23, 2024, 1:17pm UTC](https://ziggit.dev/t/string-operations-at-comptime-convert-embedfile-windows-file-to-unix-file/7245 "2024-12-23T13:17:51Z")

</div>

Hi, I am currently converting “\\r\\n” from windows files to “\\n” using std.mem.replacementSize, alloc and std.mem.replace at runtime. Not sure if it’s the best way but it works as a proof of concept. However, those file…
