DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   Regex - always the same :) (http://www.daniweb.com/forums/thread98432.html)

edek Nov 26th, 2007 6:56 am
Regex - always the same :)
 
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?


All times are GMT -4. The time now is 10:54 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC