---
# System prepended metadata

title: Spaces Between Characters

---

# Spaces Between Characters
1. This expression aims to fix the appearance of random spaces between characters. Can be used for both integers or letters:
-- [0-9] -> range of integers to be matched
-- [A-Z] or [a-z] -> range of letters to be matched, case sensitive (use [A-z] to include both upper and lower case)
-- {number of characters} can be any numeric value or any numeric range, and can be expressed as follows (from https://www.codemag.com/article/0305041):
-- {n,} -> matches at least n instances of preceding character (where n is an integer)
-- {n,m} -> matches at least n and at most m instances of preceding character (where n and m are integers)
-- {n} -> matches exactly n preceding characters

* Expression
```
(\s*([0-9] OR [A-Z]\s*){number of characters})
```
```
(\s*([0-9]\s*){4})
```
```
(\s*([A-z]\s*){7,13})
```

2. TEST SAMPLES
https://doi.org/10.5252/adansonia2019v41a14

3. [RegExr link](regexr.com/4rna7)