Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6879071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:48:05+00:00 2026-05-27T04:48:05+00:00

I have a regex stored within an Apache Camel XML file: <simple>${body} regex ‘\s*&lt;+.*'</simple>

  • 0

I have a regex stored within an Apache Camel XML file:

<simple>${body} regex '\s*&lt;+.*'</simple>

I am trying to match the string:

&lt;?xml

(the first part of an encoded XML file)

i.e. literally the characters &lt;.

The Problem is that since this is contained in an XML file it is being treated as an encoded angle bracket and only matching <?xml.

Is there a way to escape this and make the match work for the encoded string?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:48:06+00:00Added an answer on May 27, 2026 at 4:48 am

    You’ll have to double escape it:

    <simple>${body} regex '\s*&amp;lt;+.*'</simple>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

RegEx has always confused me. I have a string like this: IDE\DiskDJ205GA20_____________________________A3VS____\5&1003ca0&0&0.0.0 Or Sometimes
I have a text file stored as a string variable. The text file is
i have a list of regex patterns (stored in a list type) that I
I have simple regex \.*\ for me its says select everything between and ,
I have a regex created from a list in a database to match names
Anyone have a regex to strip lat/long from a string? such as: ID: 39.825
Using Java have the source code of a webpage stored in a string. I
I have a String stored in a table in the following key-value format: Key1☺Value1☺Key2☺Value2☺KeyN☺ValueN☺.
I have some document stored as a large String. In the String I have
We have a simple calculation engine that takes in a string ( such as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.