如何在两个特殊字符之间显示文本? [英] How can I display text between two special characters?

查看:57
本文介绍了如何在两个特殊字符之间显示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

How can I display the text between two special characters? I want to have the portion of code displayed in

中.我有它,因此它可以按照我想要的方式显示第一部分和最后一部分.符号之间的数据

between the two :: symbols. I have it so it can display the first and last portions the way I want. The data

类型是表示字节大小的整数.他是以下代码的示例:

type going between them symbols is a integer to represent byte size. He is a sample of the code below:

Public Class Form1
    Private Sub btnSubStrings_Click(ByVal sender As System.Object,
                                    ByVal e As System.EventArgs) Handles btnSubStrings.Click
        'Declare variable
        Dim strResults As String

        'Get the text from the TextBox
        strResults = txtString.Text

        'Display the first 32 characters
        MessageBox.Show(strResults.Substring(0, 32), "Strings")

        'Display the middle bytesize characters
        "HERE IS WHERE I WANT TO INSERT THE CODE"

        'Display characters after speical symbols
        MessageBox.Show(strResults.Substring(strResults.LastIndexOf(":") + 1))

    End Sub
End Class

我希望该字符串以这种格式显示并输出为:

I want the string displayed in this format and outputted as:

2b23f7daff18291f590b83812b5d42ca:1524:Trojan-Downloader.a

2b23f7daff18291f590b83812b5d42ca:1524:Trojan-Downloader.a

推荐答案

Hi Brut3Forc3d

Hi Brut3Forc3d,

该论坛讨论的是Visual Studio WPF/SL设计器,Visual Studio指导自动化工具包,开发人员文档和帮助系统,和Visual Studio编辑器.

This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

您的问题与VB有关,我将此线程移至相应的论坛以寻求专业解答.

Your issue is related to VB, I will move this thread to corresponding forum for a professional answer.

此致

奥斯卡

Oscar


这篇关于如何在两个特殊字符之间显示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆