How do I isolate a space using RegExp in VBA (\s vs. \p{Zs})?

前端 未结 3 983
走了就别回头了
走了就别回头了 2020-12-07 03:37

Introduction/Question:

I have been studying the use of Regular Expressions (using VBA/Excel), and so far I cannot understand how I would isolate a <

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 04:14

    You can explicitly include a white space in your RegEx pattern. The following pattern works just fine

    strPattern = "^[0-9](\S)+ "
    

提交回复
热议问题