Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: Danae
Thanks Laz! But no instance of Regex I know of will accidently remove some text and REPLACE it with something else on accident.

Um, actually, Regex is quite versatile and capable of doing substitution all day long......

http://www.java2s.com/Code/Java/Regular-Expressions/QuickdemoofRegularExpressionssubstitution.htm

23 posted on 10/31/2011 1:43:00 PM PDT by Lazamataz (I guess some Occupiers are more 99% than other Occupiers.)
[ Post Reply | Private Reply | To 20 | View Replies ]


To: Lazamataz
When it was called an error? Why insert new data if it was an error. Of course Regex can replace information, that isn't the point. The point is that this was called an error, mistaking a .* for a \s. That would NOT have inserted new characters. Unless it was deliberate. That's my point.

Regex is brittle, you have to get it right or the results get unpredictable.

26 posted on 10/31/2011 2:06:22 PM PDT by Danae (Anailnathrach ortha bhais beatha do cheal deanaimha)
[ Post Reply | Private Reply | To 23 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson