Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


general:regex:space_number

Space before or after a number

One character before
\s(?=\d)
Unlimited characters before
\s+(?=\d)
One character after
(?<=\d)\s
Unlimited characters after
(?<=\d)\s+

Use [ ] instead of \s to match a space instead of [\r\n\t\f\v ]

Discussion

Enter your comment:
I Y᠎ A S P
 
general/regex/space_number.txt · Last modified: 2018/09/28 07:38 by tplecko