15,892,059 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by johnjsm (Top 30 by date)
johnjsm
22-Jan-24 11:30am
View
Yeah. I just stumbled across this and it seems to work for what I need.
johnjsm
16-Jan-19 11:09am
View
I'm still lost
johnjsm
15-Jan-19 6:51am
View
Thanks for your help
johnjsm
15-Jan-19 5:49am
View
I have and to some degree I understand but at same time this is so much more advanced than my skills. Sorry
johnjsm
14-Jan-19 12:19pm
View
ok. Output looks great but how do I get it. I'm sorry. Fighting a bug at the moment and head is fried.
johnjsm
28-Mar-18 7:49am
View
It works. Thanks a million
johnjsm
28-Mar-18 7:03am
View
Dim strInput As String = "IncludeFiles = \\mckirlwebpd3srv\CDODFiles\71669\ClaimReviewCustomizationGuideV61.pdf"
Dim strReplacement As String = "p:\"
Dim regex As Regex = New Regex( _
"\\\\.+(?=\\)", _
RegexOptions.Multiline _
Or RegexOptions.Singleline _
Or RegexOptions.CultureInvariant _
Or RegexOptions.Compiled _
)
Dim result As String = regex.Replace(strInput, strReplacement)
MsgBox(result)
johnjsm
28-Mar-18 6:59am
View
I was testing it in a regex designer. I'll start the code and check it out. Sorry Regex baffles me
johnjsm
28-Mar-18 6:44am
View
I guess i'm excited that today is my Friday and can't wait to get out of work.
I tried the update on the following
IncludeFiles = \\mckirlwebpd3srv\CDODFiles\71669\ClaimReviewCustomizationGuideV61.pdf
I get this output
\\mckirlwebpd3srv\CDODFiles\71669
johnjsm
28-Mar-18 6:24am
View
I'm new to Regex and I should have given the full string
IncludeFiles = \\mckirlwebpd3srv\CDODFiles\71669\ClaimReviewCustomizationGuideV61.pdf
Output I need is
IncludeFiles = p:\CDODFiles\71669\ClaimReviewCustomizationGuideV61.pdf
johnjsm
28-Mar-18 6:06am
View
The input string will be different form time to time so I will not know what the input string will be
johnjsm
15-Jan-16 8:52am
View
System.Windows.Forms.ListBox
johnjsm
15-Jan-16 8:48am
View
1st item gets 1st coordinate
2nd item get 2nd coordinate
3rd item get 3rd coordinate
4th item get 4th coordinate
This is no problem. but when I go above 4 items I need to start back
5th item gets 1st coordinate
6th item get 2nd coordinate
7th item get 3rd coordinate
8th item get 4th coordinate
Aslo need to figure out that at the start and finish of each 4 items I need to put the code for start and finish of the label
johnjsm
15-Jan-16 3:22am
View
Because I'm using ZPL code for printing directly to the printer there is code for the start and end of a label. So I can have one file that contains mutiple starts and ends
johnjsm
15-Jan-16 3:21am
View
Sorry. I would be using standard ListBox in vb.net using .net4
johnjsm
15-Jan-16 3:19am
View
I'm using ZPL code for printing to a label printer. This allows you to give co-ordinates of where each item should be printed. You can also specify the beginning and end of a label.
johnjsm
19-Aug-15 14:59pm
View
Sorry
johnjsm
19-Aug-15 14:54pm
View
This is cool but what if the information I need is for a USB that is attached. Is there a case where if I know that the drive letter is always going to be E for example is there a way to then get the partition information for that
johnjsm
28-Jul-15 10:41am
View
thank you so much. thats working
johnjsm
24-Feb-15 12:07pm
View
Any chance you can give it in vb
johnjsm
24-Feb-15 11:55am
View
My problem is trying to join each item in array into a single string.
I've been trying to use a for loop with no result
johnjsm
31-Oct-14 8:14am
View
I like this a lot but due to it going on a label I don't have room for it to fit. Code is being used for track and trace label
johnjsm
29-May-14 9:26am
View
Sorry about putting question in wrong location
johnjsm
27-May-13 4:48am
View
Thanks a million. Don't know why I always thought that function would not do sub directories.
johnjsm
20-Sep-12 8:38am
View
sorry. my bad. i think my only way around it is to Run As using my login details
johnjsm
20-Sep-12 7:43am
View
yes. but its against corporate policy to post information like that
johnjsm
20-Sep-12 7:32am
View
I can't actually show those details here as its a corporate database
johnjsm
20-Sep-12 7:22am
View
sorry. this is what i have.
"Data Source=ServerName,2048;Initial Catalog=DATABASE;User Id=domain\username; Password=12345678"
johnjsm
20-Sep-12 7:17am
View
That is what i am already using and its not working
johnjsm
16-Jul-12 7:43am
View
Thanks. This worked perfectly.
Show More