Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have html source code of a page. Then how to find
<input type="hiddenfield" value="dsgfdt" autocomplete="off">
from this source code using regex
Posted
Comments
Zoltán Zörgő 10-Apr-13 8:29am    
You want all hidden fields? Or what is the pattern in English exactly? This is no pattern, this is a string, for what you don't need any regex.
AmitGajjar 10-Apr-13 8:30am    
why you need to get this using regex only ? don't you like javascript ?
AmitGajjar 10-Apr-13 8:31am    
it will also help us if you can provide your purpose as well.
Member 9974460 12-Apr-13 2:50am    
but value is changing everytime then how to get this using regex

1 solution

^[]$

Try using this it may work.It will possiblly return more than you expect, but can have the line you want among other things.
But why dont you use jquery, it will be a lot simpler.
 
Share this answer
 
Comments
Zoltán Zörgő 10-Apr-13 8:37am    
The question is not really good, but your answer is as bad. Do you really think that somebody is looking for exactly this pattern? But the jquery suggestion can be a good approach in some situations.
Try not to answer if the question is not well defined. Better post questions and ask for clarification.

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