Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

regexp

Status
Not open for further replies.

stormbind

Technical User
Mar 6, 2003
1,165
GB
It would seem I do not understand regexp in Java. The following..

System.out.print("hello world".split("/s"));

.. outputs gobledigook :/

I wish to split the sentence into an array of valid words.

--Glen :)

Memoria mihi benigna erit qui eam perscribam
 
isn't it "[red]\[/red]s"?

_________________
Bob Rashkin
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top