Regex - always the same :)

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 113
Reputation: edek is an unknown quantity at this point 
Solved Threads: 0
edek's Avatar
edek edek is offline Offline
Junior Poster

Regex - always the same :)

 
0
  #1
Nov 26th, 2007
Hi all!

I need to create regex that matches everything before some specified (whole) word. Lets say I need everything before 'have' in such text:

What ^7^*#/> I @@3->;: have to do with this *~~@}}], hmm...?

...so I would like to have "What ^7^*#/> I @@3->;: " as a result - weird symbols inside the example are just to show what are we dealing with (it is not plain text, like "plain text")

It seems not so easy, though...
ideas?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC