Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tolong]Regex code problem
11-12-2013, 01:11 PM,
Post: #1
[Tolong]Regex code problem
Problem code :
Code:
Dim r As New Regex("<td class=""domain"">(.*)</td>")
        Dim m As Match = r.Match(WebBrowser2.DocumentText)
        If m.Success Then
            ListBox1.Items.Add((m.Groups(1).Value))
        End If

source code untuk webpage :

Code:
<td class="domain">wwww.site.com</td>

Hmm
Reply
11-12-2013, 01:51 PM,
Post: #2
RE: [Tolong]Regex code problem
aku rasa < dgn > kena escape kut?
puas sudah menanam ubi, nenas juga dibeli orang, puas sudah aku berbakti, pengganas juga dipandang orang

Quote:A true warrior need blood on his sword; A true pirate never afraid to sail the red sea.
Reply
11-12-2013, 02:02 PM, (This post was last modified: 11-12-2013, 02:07 PM by MyTeam.)
Post: #3
RE: [Tolong]Regex code problem
(11-12-2013, 01:51 PM)Ahlspiess Wrote: aku rasa < dgn > kena escape kut?

maksudnya < > kena buang ke ?? Hmm

result ;d
[Image: 1459247_548070238617546_128078215_n.jpg]
Reply
11-12-2013, 02:17 PM, (This post was last modified: 11-12-2013, 09:07 PM by shahril.)
Post: #4
RE: [Tolong]Regex code problem
Code:
\<td class=\"\"domain\"\"\>(.*?)\<\/td\>

edit : personant bagitau aku sbb ko x buat ungreedy, klau regex

Code:
<text>(.*)</text>

dia match dngn

<text>test1</text>test2</text>

klau

Code:
<text>(.*?)</text>

dia match dngn

<text>test2</text>

entah tu apa dia baru gitau aku tadi ;d
[Image: OmDM2yf.png]
Reply
11-12-2013, 02:45 PM,
Post: #5
RE: [Tolong]Regex code problem
ungreedy la arel Fuck That Shit
Reply
11-12-2013, 02:49 PM,
Post: #6
RE: [Tolong]Regex code problem
Pers0nant my masta ;d
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Webrequest vb.net problem BudakBaru 1 423 01-09-2013, 02:37 AM
Last Post: linear
  Tolong hamba kejap ... KakiPukul 7 533 30-06-2013, 08:54 PM
Last Post: Cybercrookz
  tolong..code minimize ke tray?? reznet 7 2,222 11-03-2013, 02:22 AM
Last Post: otai_g
  [ask]reverse code keyoren 2 464 05-10-2012, 12:06 PM
Last Post: shahril
  request source code crypter vcv3noM 2 855 24-11-2011, 07:56 PM
Last Post: vcv3noM
  Delphi Prism/Code Gear.NET D3vil 1 431 11-11-2011, 10:18 PM
Last Post: syimi56
  Help (Fix The Code ) x-Antivirus Tron 20 3,134 22-07-2011, 09:46 AM
Last Post: Neology
  [VB.NET]GetDelegateForFunctionPointer problem..mintak bantuan Neology 4 731 08-07-2011, 03:24 AM
Last Post: Neology
  [SOURCE] Crypo.com Encryptions [CODE] Yo 2 663 29-06-2011, 11:26 AM
Last Post: Tron
  [REQ] source code to snap picture using web cam automatic skyz3r 3 741 18-06-2011, 11:47 PM
Last Post: skyz3r

Forum Jump: