can we use regular expression

S

saravana

hai all,

i want to search a particular character in the given set of strings
,the string can be of any length it can be changed dynamically .so if
i use loops then there may be performmance degradation

so please suggest me how i can do this one

is there a possibility to do this work with regular expression


thanks
Saravana
 
A

Andrew Thompson

i want to search a particular character in the given set of strings
String.indexOf()

,the string can be of any length it can be changed dynamically .

Strings, changing dynamically,.. there is
a memory drain/performance issue.
..so if
i use loops then there may be performmance degradation

Have you tried it?
so please suggest me how i can do this one

is there a possibility to do this work with regular expression

Probably, I do not see why it is necessary
though, RegEx's are not 'magic bullets'
that solve performance problems.
 
D

Dave Monroe

hai all,

i want to search a particular character in the given set of strings
,the string can be of any length it can be changed dynamically .so if
i use loops then there may be performmance degradation

so please suggest me how i can do this one

is there a possibility to do this work with regular expression


thanks
Saravana

Take a look at the matches() method of String.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top