Big Chungus
Big Chungus
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
odd
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
yes, but if you have the string "test string" and you tell it to start from index 4, patterns like ^\s will not be matched
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
yes, but in my testing, it doesn't consider this the beginning of the string, so I actually have to create a whole new string
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
I really hate C#'s regex
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
wait why is there isMatch() for ROS, but not Match()?
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
it's a really well made library
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
still a shame that no one has made a propper wrapper for re2 tho
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
I am now lol
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
not because I needed it
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
thats more just bc I wanted to use something fast
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
I'm also loosing a significant amount of performance to poor string handling anyways
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
I don't need performance so badly that I'm going to benchmark it
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
I don't have any benchmarks against .net, but it tends to do well on most benchmarks (eg: https://lh3lh3.users.sourceforge.net/reb.shtml)
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
google's regex library, it's quite fast
42 replies
CC#
Created by Big Chungus on 2/4/2025 in #help
Fast regex that takes in a span instead of a string
because if I want to then do another search on a smaller part of the string (ie if I consume a token from the front), then I have to pass a whole new string
42 replies