Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i knew tht to compare +, i should write \+ but wht for ++?
Posted

1 solution

\+{1,2}


will match between 1 and 2 + characters, if you have +++ in the string it will math it as + and ++
 
Share this answer
 
Comments
Sweety Khan 6-Sep-11 12:03pm    
oki but still not working. i want it to break it in ++ if i++ is written and in + if a+b is wriiten
GParkings 7-Sep-11 4:18am    
can you provide a sample string where the match is not occurring?
Sweety Khan 8-Sep-11 13:42pm    
input is i++; and broke in
i

+

;
Sweety Khan 8-Sep-11 13:47pm    
btw i enclosed all the chars on which i want to break input with braces like this
[(+{1,2})], is it right?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900