• Curriculum Vitae (CV)
• Major web solutions
• Web design projects
• Software solutions
• C# (Microsoft .NET)
• JAVA
• Dynamic HTML
• PHP & MySQL
• ASP.NET - C# & VB.NET
• Perl & CGI
• C | C++
• Vector Markup Language
• SMIL
• Assembler
• Databases
• Wap Development
• Web site promotion
• Web Marketing
|

|
Regular Expression Search and Replace Example
(JAVA free example written by Anton Zamov.) |
Regular Expression Search and Replace Example
import java.util.regex.*;
public class BasicReplace {
public static void main(String[] args) {
CharSequence inputStr = "a b c a b c";
String patternStr = "a";
String replacementStr = "x";
// Compile regular expression
Pattern pattern = Pattern.compile(patternStr);
// Replace all occurrences of pattern in input
Matcher matcher = pattern.matcher(inputStr);
String output = matcher.replaceAll(replacementStr);
// x b c x b c
}
}
|
Still have questions?
Ask your question on TechOnlineHelp.com
or find more examples on www.netartmedia.net/examples
If this example was useful for you, please support my company and click Like on the button below.
Thank you very much!
|

|
Jobs Portal, poweful jobs board software
PHP Mall, multi vendors mall website software
Car Portal, php script for auto classifieds websites
NetArt Media, software products and services
Real Estate Portal, web software for real estate portals
Blog System, multi user blog hosting script
PHP Store, powerful e-commerce system written in PHP
Pharmacy System, software for running online pharmacies
|