|
Rainchild Wizard
Joined: 10 Oct 2000 Posts: 1551 Location: Australia
|
Posted: Wed Sep 07, 2011 12:12 am
Match 0 or more spaces? |
Hey... hopefully just a quick question... got a pattern I want to match which is a digit, but it's padded, so it could look like:
Code: |
1 (rnd)
12 (14 )
123(151)
|
So I figured:
(%d)%s~((%x)%s~)
But %s matches one or more spaces... I need to match zero or more.
Is there such a thing without using regex? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Wed Sep 07, 2011 12:37 am |
yes:
{%s|} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Sep 07, 2011 3:55 am |
a range might be better here. [%s%d]
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|