Jump to content
abaddon_c

C#

Recommended Posts

Posted

salut am cateva zile de cand am inceput sa folosesc C# dar m-am lovit de o problema =/

am urmatorul text

(text (idea 1) (games) (etc) (etc))

(text (idea 2) (games) (etc) (etc))

(text (idea 3) (games) (etc) (etc))

vreau sa stiu cum as putea sa fac un parser ceva care sa imi extraga tot ce este intre paranteze,ma refer doar intre cele 2 paranteze ingrosate nu intre toate.

cu regex nu merge ... am incercat toate variantele tot nu imi merge

faza cu inceputu hai ca merge dar la sfarsit e problematic,nu vreau sa caut dupa 2 paranteze ,ar fi mers dar sunt unele cazuri unde nu merge...

mersi

Posted
faza cu inceputu hai ca merge dar la sfarsit e problematic,nu vreau sa caut dupa 2 paranteze ,ar fi mers dar sunt unele cazuri unde nu merge...

Pentru sfarsit, in loc sa cauti dupa "))", poti cauta dupa "))\r\n", adica "))"+enter.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...