T
T
Thomas Jefferson2021-06-12 12:11:42
Regular Expressions
Thomas Jefferson, 2021-06-12 12:11:42

How to select all characters up to the first space?

Would like to use regex to select a string up to a space

Answer the question

In order to leave comments, you need to log in

4 answer(s)
G
GrayHorse, 2021-06-12
@GrayHorse

^[^ ]*

R
Rsa97, 2021-06-12
@Rsa97

/(.*?) /

V
Vladimir Korotenko, 2021-06-12
@firedragon

Dot asterisk space in brackets
Will match these characters
Try any regex tester

S
Stalker_RED, 2021-06-12
@Stalker_RED

(.* )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question