Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

search some string using regexp?  RSS feed

 
dragon ji
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to search some string in a file,that string have special head and tail,and it's body can have any random character.There maybe have many string like that in the file. How do I define pattern using regexp?
thanx.
 
dragon ji
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add:
I use jakata regexp1.3 ,and if have some text as follows:
asdfasdfasf<Quote>alskdjfpaoist;aoisejt</quote>aslidjfasi<Quote>asldkaoisent;aosiet;aioset</quote>a;lsidjfa;iset
and I want find all text in <Quote> and <quote>,How do I wirte that pattern?
please help me,thanx.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!