Java String Extract extractReferences(String value)

Here you can find the source of extractReferences(String value)

Description

extract References

License

Open Source License

Declaration

private static String[] extractReferences(String value) 

Method Source Code

//package com.java2s;

import java.util.ArrayList;

import java.util.List;

public class Main {
    private static String[] extractReferences(String value) {
        List l = new ArrayList();

        for (int i = 0; i < value.length(); i++)
            if ('$' == value.charAt(i)) {
                int start = i + 2;
                while ('}' != value.charAt(i))
                    i++;/*from  w  w  w.j a va2  s. com*/
                int end = i;
                l.add(value.substring(start, end));
            }
        return (String[]) l.toArray(new String[0]);
    }
}

Related

  1. extractNumberFromInput(String command)
  2. extractNumbers(String text)
  3. extractPacket(String serverPacket)
  4. extractParameters(String uri)
  5. extractParamsFromUriTemplateFragment(String value)
  6. extractStreetName(String address)
  7. extractStrings(String s)
  8. extractStringsAroundDots(String s)
  9. extractTableName(String line)