3 Replies Latest reply: Dec 29, 2009 12:32 AM by 807580 RSS

    String Regular Expression Question

      Hello everyone. I am facing problems forming a regular expression pattern :S

      I wanted to get all the binding in a JSF file by doing a simple print line, and I first started by using the pattern, "#\\{.*\\}"

      It all worked fine, until I came across a line like this:
       <af:inputText value="#{bindings.p_email.inputValue}" label="#{bindings.p_email.labelValue}" required="true"
      The line matched my pattern, and gave me "#{bindings.p_email.inputValue}" label="#{bindings.p_email.labelValue}" instead.

      I am not sure how to form my regular expression pattern such as that it gets the first matched value (bindings.p_email.inputValue) and second one (bindings.p_email.labelValue) separately.

      Any response is greatly appreciated :)

      Thanks for reading.