Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


general:regex:space_number

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

general:regex:space_number [2019/10/31 09:05] (current)
Line 1: Line 1:
 +====== Space before or after a number ======
 +<code regex One character before>​\s(?​=\d)</​code>​
 +<code regex Unlimited characters before>​\s+(?​=\d)</​code>​
 +<code regex One character after>​(?<​=\d)\s</​code>​
 +<code regex Unlimited characters after>​(?<​=\d)\s+</​code>​
 +Use **[ ]** instead of **\s** to match a space instead of **[\r\n\t\f\v ]**
 +
  
general/regex/space_number.txt · Last modified: 2019/10/31 09:05 (external edit)