pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Tag parser #105

Open pratik-choudhari opened 3 years ago

pratik-choudhari commented 3 years ago

Feature ✅

Description

Given a set of tagged strings, output the tag contents.

Example

First line signifies number of input lines Input: 4

<h1>This is a heading</h1>
<This_tag_doesnot_exist>Hello</This_tag_doesnot_exist>
<apple>Technology is growing</apple>
<user>Archit</user>

Output: This is a heading Hello Technology is growing Archit

Contributors are supposed to mention their coding language while asking for assignment

paraggoyal28 commented 3 years ago

@pratik-choudhari I would like to work on this in Python. But how are we specifying tagged text. Means like will it be given like in string """"

This is heading

HelloTechnology is growingArchit. Or something else. Please specify the input more clearly.

ananthalakshmiragi commented 3 years ago

Hi, how are the tags determined? is it every Capitalised letter?

pratik-choudhari commented 3 years ago

@ananthalakshmiragi @paraggoyal28 Have look at he example again, there was an issue with github markdown.

ananthalakshmiragi commented 3 years ago

Thanks, so the tagnames are not predefined. Can there be multiple tags in a line? or is it only one per line..

pratik-choudhari commented 3 years ago

@ananthalakshmiragi Let's keep it a single tag per line.

ananthalakshmiragi commented 3 years ago

okay, Please assign to me in Java.

@ananthalakshmiragi Let's keep it a single tag per line.