| | |
Regex - always the same :)
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
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?
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?
![]() |
Similar Threads
- Matching multiple href="Something.aspx" using RegEx (ASP.NET)
- regex question (Perl)
- regex (boost) (C++)
- Getting the start / end of string in regex through match objects (Python)
- Regex in Java (Java)
- Regex for password (Shell Scripting)
- Regex in C++ (C++)
- help with regex...and marking up text in JTextpane with html (Java)
Other Threads in the C# Forum
- Previous Thread: Drawing circles and connecting them
- Next Thread: Error while running program. Please help!
| Thread Tools | Search this Thread |
.net access algorithm array barchart bitmap box broadcast c# check checkbox client combobox control conversion csharp custom cyclethruopenforms data database datagrid datagridview dataset date/time datetime degrees development draganddrop drawing encryption enum event excel file filename finalyearproject form format forms function gdi+ getoutlookcontactusinfcsvfile gis globalization gtk httpwebrequest image index input install installer java label list listbox mandelbrot math mono mouseclick mysql operator panel path photoshop picturebox pixelinversion post programming radians regex remoting richtextbox save server silverlight sleep socket sql sql-server statistics stream string table text textbox thread time timer timespan update usercontrol users validate validation visualstudio webbrowser windows winforms wpf xml





