android Regex issue
up vote
0
down vote
favorite
I had an issue with this regex:
({(([^p{Space}][^p{Punct}])+)})
The problem is in number of chars. If I typing even number of chars it's works, when odd - not. I was trying to replace '+' with '?' or '*', but result still the same. How can I fix this?

add a comment |
up vote
0
down vote
favorite
I had an issue with this regex:
({(([^p{Space}][^p{Punct}])+)})
The problem is in number of chars. If I typing even number of chars it's works, when odd - not. I was trying to replace '+' with '?' or '*', but result still the same. How can I fix this?

What are the pattern requirements? What are you trying to match?
– Wiktor Stribiżew
just now
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I had an issue with this regex:
({(([^p{Space}][^p{Punct}])+)})
The problem is in number of chars. If I typing even number of chars it's works, when odd - not. I was trying to replace '+' with '?' or '*', but result still the same. How can I fix this?

I had an issue with this regex:
({(([^p{Space}][^p{Punct}])+)})
The problem is in number of chars. If I typing even number of chars it's works, when odd - not. I was trying to replace '+' with '?' or '*', but result still the same. How can I fix this?


asked 2 mins ago


Skullper
16210
16210
What are the pattern requirements? What are you trying to match?
– Wiktor Stribiżew
just now
add a comment |
What are the pattern requirements? What are you trying to match?
– Wiktor Stribiżew
just now
What are the pattern requirements? What are you trying to match?
– Wiktor Stribiżew
just now
What are the pattern requirements? What are you trying to match?
– Wiktor Stribiżew
just now
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204474%2fandroid-regex-issue%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What are the pattern requirements? What are you trying to match?
– Wiktor Stribiżew
just now