D
D
Dmitry Bashinsky2018-02-20 18:42:32
Regular Expressions
Dmitry Bashinsky, 2018-02-20 18:42:32

How to get parameter values ​​without using groups?

Hello. It is necessary to get only the values ​​of the parameter, knowing the name of the parameter.
app=ЧТОТО_БЕЗ_ТАБУЛЯЦИЙ_И_ПРОБЕЛОВ
app=(\w+)
This gives a value to group 1, and it gets into the value:
app=ЧТОТО_БЕЗ_ТАБУЛЯЦИЙ_И_ПРОБЕЛОВ
but you just need to have a value

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-02-20
@BashkaMen

(?<=app=)(\w+)
well, or i.e. without groups
(?<=app=)\w+

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question