5
rated 0 times
[
11]
[
6]
/ answers: 1 / hits: 27561
/ 13 Years ago, tue, january 24, 2012, 12:00:00
please consider the following javascript code:
myObject.myMethod();.replace(/.w+(/g, xxx);
it gives myObjectxxx);
as .myMethod(
is selected.
Now I would only select myMethod
instead. In other words I want to select any word starting with .
and ending with (
(excluded).
Thanks, Luca.
More From » regex