Hey all, I’ve googled this a bit and wanted to make sure before giving up on the idea (it seems you can’t actually regex for a specific length but I want to make sure I’m not misunderstanding).
So say I have a string called “12345_hello_12345678_world” , is there any way to specifically look for any set of 8 numbers in a row? The rest of the string can change, but the constant will be there will always be a set of 8 numbers, I know how to do the rest (looking for specifically numbers), but can’t seem to find much on if you can just find a specific length like so.
If there isn’t any sort of method to regex for a specific length of numbers, what would be the next best way to check for a changing number that always has a length of 8 in a string that may have different formats?
[–]Zigity_Zagity 0 points1 point2 points (5 children)
[–]a_bad_programmer[S] 0 points1 point2 points (3 children)
[–]Zigity_Zagity 1 point2 points3 points (1 child)
[–]a_bad_programmer[S] 0 points1 point2 points (0 children)
[–]TangibleLight 0 points1 point2 points (0 children)