Skip to content

KUSHALDBSSRM/RegularExpressions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RegularExpressions Programming Assignments

Q1. Write a java program to remove the comments from xml string ? Input : <a>hola Note: Between , any text in that section is considered a comment in xml string Output: <c i="o" >hola

Q2: Write a java program to validate the url? Input : Url Output: true/false Note : Url is valis if it starts with either of the following http:// [OR] http://www. [OR] https:// [OR] https://www. Q3: Write a java program to get the host name, protocol and path string from given Url string without using URL class? Input: UrlString Output: hostname: protocol: pathString: Example: Input: http://www.example.com:80/path/to/myfile.html?key1=value1&key2=value2 Output: hostname: www.example.com protocol: http pathstring: path/to/myfile.html

Q4. Write a java program to check whether given string contains /../ or /./? Input: ravindraravula/./ Output: true

Q5. Write a java program to check whether the given string ended with ".htm" or ".html"?

Q6. Check whether given string represents IPV4 address or not?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages