G
G
gromanev2016-02-25 11:35:15
Regular Expressions
gromanev, 2016-02-25 11:35:15

Regexp js. How to get everything after a certain substring?

There is this line: "BIX_resource lynx-click lynxid-unior".
There is a pattern that works in PHP: "(?<=\lynxid-)(\w+)".
As a result, coincidentally, it will select: "unior".
Help compose a regular expression for JS. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-02-25
@GRomanEv

/lynxid-(\w+)/
https://jsfiddle.net/wjmjg609/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question