My Regular expression stop at $ sign
-
I am using following string.. Searching text er's community and total budget is $16/page. The regular expression I am using is "[^$]*" but it only get "Searching text er's community and total budget is " not getting the whole string. it means it stop at $ sign what changes I should made to get the whole string. Thanks in advance :)
-
I am using following string.. Searching text er's community and total budget is $16/page. The regular expression I am using is "[^$]*" but it only get "Searching text er's community and total budget is " not getting the whole string. it means it stop at $ sign what changes I should made to get the whole string. Thanks in advance :)
You told it to take everything up to the first $ and stop there, what did you expect? You want a RegEx to take the whole string you already have? Why?
-
You told it to take everything up to the first $ and stop there, what did you expect? You want a RegEx to take the whole string you already have? Why?
-
Actually this is a part of a big string in which I am searching for something but it stop at $ sign if you resolve this issue then it will helpful for me. Thanks
Then more information is required. What is the string, and what part do you want? Are there many strings?
-
I am using following string.. Searching text er's community and total budget is $16/page. The regular expression I am using is "[^$]*" but it only get "Searching text er's community and total budget is " not getting the whole string. it means it stop at $ sign what changes I should made to get the whole string. Thanks in advance :)
This will just pick up the whole string and stops.. as per your command .. So why do you need this expression then. Please try to undestand some basics of RegeX here. http://www.codeproject.com/KB/dotnet/regextutorial.aspx[^] :) :-D
Shyam.. My Blog dotnetscoups.blogspot.com